Пример #1
0
 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);
         }
     }
 }
Пример #2
0
    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);
            }
        }
    }
Пример #3
0
 public GameModeChangeEvent(GameManager.Mode newMode)
 {
     this.newMode = newMode;
 }
Пример #4
0
 public SetGameModeObserver(GameManager.Mode mode)
 {
     this.pMode = mode;
 }
Пример #5
0
 public void SelectModeDropdown(int option)
 {
     mode = (GameManager.Mode)option;
 }