feature/showcase_kathi #12
File diff suppressed because it is too large
Load Diff
@@ -201,7 +201,7 @@ radius = 472.086
|
|||||||
[node name="IndoorTest" type="Node2D"]
|
[node name="IndoorTest" type="Node2D"]
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
script = ExtResource("1_3vr4f")
|
script = ExtResource("1_3vr4f")
|
||||||
_sceneNamesToLoad = PackedStringArray("res://scenes/Babushka_scene_indoor_vesnas_room.tscn", "res://scenes/Babushka_scene_farm_outside_2d.tscn")
|
_sceneNamesToLoad = PackedStringArray("res://scenes/Babushka_scene_indoor_vesnas_room.tscn", "res://scenes/Babushka_scene_farm_outside_2d_ducksCollected.tscn")
|
||||||
|
|
||||||
[node name="Foreground" type="Node" parent="."]
|
[node name="Foreground" type="Node" parent="."]
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ public partial class MVPDuck : Node2D
|
|||||||
|
|
||||||
public async void MoveAfterDelay()
|
public async void MoveAfterDelay()
|
||||||
{
|
{
|
||||||
await ToSignal(GetTree().CreateTimer(1.0f), "timeout"); // 1.0f seconds
|
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
|
||||||
|
if(!_penTarget.Equals(null))
|
||||||
Position = _penTarget.GlobalPosition;
|
Position = _penTarget.GlobalPosition;
|
||||||
EmitSignal(SignalName.DuckCollected);
|
EmitSignal(SignalName.DuckCollected);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user