Falling rose petal effect
This commit is contained in:
@@ -20,7 +20,7 @@ public partial class CapricornControls : Character
|
||||
MoveAndSlide();
|
||||
}
|
||||
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (Input.IsActionJustPressed("exit"))
|
||||
GetTree().Quit();
|
||||
@@ -86,8 +86,8 @@ public partial class CapricornControls : Character
|
||||
{
|
||||
IsShooting = true;
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||
var projectile = _fireProjectile.Instantiate<Node3D>();
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||
projectile.Position = Position;
|
||||
if (GetParent() != null)
|
||||
GetParent().AddChild(projectile);
|
||||
@@ -99,8 +99,8 @@ public partial class CapricornControls : Character
|
||||
{
|
||||
IsShooting = true;
|
||||
CanShoot = false;
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||
var projectile = _altFireProjectile.Instantiate<Node3D>();
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||
projectile.Position = Position;
|
||||
if (GetParent() != null)
|
||||
GetParent().AddChild(projectile);
|
||||
|
||||
Reference in New Issue
Block a user