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);
|
||||
|
||||
SetFrozen(false);
|
||||
@@ -46,14 +46,14 @@ namespace Marro.PacManUdon
|
||||
// Reached end, make ghost scared and turn around
|
||||
blinky.BecomeScared();
|
||||
blinky.SetPosition(intermissionScreenElements[3].transform.localPosition);
|
||||
pacMan.SetDirection(Vector2.zero);
|
||||
pacMan.SetDirection(Direction.Zero);
|
||||
pacMan.SetPosition(intermissionScreenElements[2].transform.localPosition);
|
||||
pacMan.SetPowerPellet(true);
|
||||
|
||||
break;
|
||||
case 4:
|
||||
// Pacman starts chasing ghosts
|
||||
pacMan.SetDirection(Vector2.right);
|
||||
pacMan.SetDirection(Direction.Right);
|
||||
pacMan.BecomeBig();
|
||||
break;
|
||||
case 5:
|
||||
|
||||
Reference in New Issue
Block a user