Skip to content

Commit 6057b97

Browse files
authored
Don't remove the dash switch after pressing it
1 parent b5aadec commit 6057b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Entities/LightningDashSwitch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public override void Awake(Scene scene) {
5959
Position = pressedTarget - pressDirection * 2f;
6060
pressed = true;
6161
Collidable = false;
62-
Add(new Coroutine(Lightning.RemoveRoutine(SceneAs<Level>(), new Action(RemoveSelf)), true));
62+
Add(new Coroutine(Lightning.RemoveRoutine(SceneAs<Level>()), true));
6363
}
6464
}
6565

@@ -103,7 +103,7 @@ public DashCollisionResults OnDashed(Player player, Vector2 direction) {
103103
MoveTo(pressedTarget);
104104
Collidable = false;
105105
Position -= pressDirection * 2f;
106-
Add(new Coroutine(Lightning.RemoveRoutine(SceneAs<Level>(), new Action(RemoveSelf)), true));
106+
Add(new Coroutine(Lightning.RemoveRoutine(SceneAs<Level>()), true));
107107
}
108108
return DashCollisionResults.NormalCollision;
109109
}

0 commit comments

Comments
 (0)