wip: OctoPlayerDriver & New Triggers for OctoWorldEvent & Critical Path V1

This commit is contained in:
Alexandre Coirier
2026-05-19 23:40:16 +02:00
parent 578b94f1dc
commit 1cff87b60b
37 changed files with 6172 additions and 885 deletions
+19 -2
View File
@@ -151,11 +151,28 @@ public class SpiralStaircase : MonoBehaviour
_doorsCoroutine[id] = null;
}
public void SimulateTop()
{
_state.Progression = 0;
_state.PlayerInside = true;
_state.Turns = (int)_settings.EndAngle / 90;
Count();
ManageInside();
}
public void SimulateBottom()
{
_state.Progression = 1;
_state.PlayerInside = true;
_state.Turns = 0;
Count();
ManageInside();
}
private void Count()
{
if (!OctoPlayer.Instance) return;
Vector2[] steps = new Vector2[4] { Vector2.up, Vector2.left, Vector2.down, Vector2.right };
Vector2 nextStep = steps[_state.Turns % steps.Length];