Switched to Direction enum
This commit is contained in:
@@ -26,14 +26,14 @@ namespace Marro.PacManUdon
|
||||
pacMan.SetKinematic(true);
|
||||
pacMan.SetActive(true);
|
||||
pacMan.SetPosition(intermissionScreenElements[0].transform.localPosition);
|
||||
pacMan.SetDirection(Vector2.left);
|
||||
pacMan.SetDirection(Direction.Left);
|
||||
|
||||
ghostManager.SetLevel(5);
|
||||
ghostManager.SetKinematic(true);
|
||||
ghostManager.gameObject.SetActive(true);
|
||||
blinky.SetElroy(2);
|
||||
blinky.SetPosition(intermissionScreenElements[1].transform.localPosition);
|
||||
blinky.SetDirection(Vector2.left);
|
||||
blinky.SetDirection(Direction.Left);
|
||||
blinky.SetState(PacManGhostState.Normal);
|
||||
blinky.SetSpecialLook(true);
|
||||
|
||||
@@ -45,13 +45,13 @@ namespace Marro.PacManUdon
|
||||
break;
|
||||
case 3:
|
||||
// Reached end, freeze
|
||||
pacMan.SetDirection(Vector2.zero);
|
||||
blinky.SetDirection(Vector2.zero);
|
||||
pacMan.SetDirection(Direction.Zero);
|
||||
blinky.SetDirection(Direction.Zero);
|
||||
break;
|
||||
case 4:
|
||||
// Ghost runs back on screen
|
||||
blinky.SetPosition(intermissionScreenElements[3].transform.localPosition);
|
||||
blinky.SetDirection(Vector2.right);
|
||||
blinky.SetDirection(Direction.Right);
|
||||
break;
|
||||
case 5:
|
||||
// End cutscene
|
||||
|
||||
Reference in New Issue
Block a user