public void SetCursorPosition(int pos, bool goingDown) { Debug.Log((int)cursorAt); if (pos == 0) { cursorAt = CursorAt.NewGame; sound.PlayOneShot(buttonHover); } if (pos == 1) { if (goingDown) { if (continueUnlocked) { cursorAt = CursorAt.Continue; sound.PlayOneShot(buttonHover); } else { cursorAt = CursorAt.Options; sound.PlayOneShot(buttonHover); } } else { if (continueUnlocked) { cursorAt = CursorAt.Continue; sound.PlayOneShot(buttonHover); } else { cursorAt = CursorAt.NewGame; sound.PlayOneShot(buttonHover); } } } if (pos == 2) { cursorAt = CursorAt.Options; sound.PlayOneShot(buttonHover); } if (pos == 3) { cursorAt = CursorAt.Exit; sound.PlayOneShot(buttonHover); } Debug.Log((int)cursorAt); }
void Start() { cursorAt = CursorAt.Continue; Time.timeScale = 0; }
public void Continue() { cursorAt = CursorAt.Continue; ui.UnPause(); }