private void Update() { mode = GameManager.Instance.Modes; state = GameManager.Instance.GameMode; //Toggle Start Button conditions if (mode == GameManager.Mode.StartScreen || mode == GameManager.Mode.Scores || state == GameManager.GameState.GameOver) { if (!IsInvoking("ToggleStartButton")) { Invoke("ToggleStartButton", 0.5f); } } }
public void SetupForMode(GameManager.Mode newMode) { if (GameManager.instance.mode == GameManager.Mode.Game || GameManager.instance.mode == GameManager.Mode.Pause) { for (int i = 0; i < explorers.Length; i++) { explorers[i].SetActive(false); gameCameras[i].SetActive(false); } gameCameras[numOfJoysticks - 1].SetActive(true); for (int i = 0; i < numOfJoysticks; i++) { explorers[i].SetActive(true); } } }
public GameModeChangeEvent(GameManager.Mode newMode) { this.newMode = newMode; }
public SetGameModeObserver(GameManager.Mode mode) { this.pMode = mode; }
public void SelectModeDropdown(int option) { mode = (GameManager.Mode)option; }