initial reload

This commit is contained in:
Rendo 2025-07-30 05:45:12 +05:00
commit fda3ca433b
5 changed files with 9 additions and 2 deletions

View file

@ -81,6 +81,11 @@ public partial class Seedpacket : TextureButton
{
_timer.Start();
}
public void StartWithResourceOffset()
{
_timer.Start(_resource.ReloadTime * (1.0 - _resource.ReloadProgress)+0.05);
Callable.From(()=>{ _timer.WaitTime = _resource.ReloadTime; }).CallDeferred();
}
public void OnUnfocused()
{