Added second outdoor scene after tutorial
This commit is contained in:
@@ -29,8 +29,9 @@ public partial class MVPDuck : Node2D
|
||||
|
||||
public async void MoveAfterDelay()
|
||||
{
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout"); // 1.0f seconds
|
||||
Position = _penTarget.GlobalPosition;
|
||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||
if(!_penTarget.Equals(null))
|
||||
Position = _penTarget.GlobalPosition;
|
||||
EmitSignal(SignalName.DuckCollected);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user