Add reload
This commit is contained in:
@@ -54,7 +54,7 @@ public partial class Gun : Node3D
|
||||
private async Task Reload()
|
||||
{
|
||||
_reloading = true;
|
||||
await ToSignal(GetTree().CreateTimer(0.3f), "timeout");
|
||||
await ToSignal(GetTree().CreateTimer(0.5f), "timeout");
|
||||
_reloading = false;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user