Exemple #1
0
    //also used to go there in the first place :D
    public void Return(string input)
    {
        switch (input)
        {
        case "fromMain":
        {
            OnOptions?.Invoke();
            mainMenu.SetActive(false);
            pauseMenu.SetActive(false);
            optionsMenu.SetActive(true);
        }
        break;

        case "fromOptions":
        {
            OnMain?.Invoke();
            if (pauseMode)
            {
                pauseMenu.SetActive(true);
                optionsMenu.SetActive(false);
            }
            else
            {
                mainMenu.SetActive(true);
                optionsMenu.SetActive(false);
            }
        }
        break;
        }
    }
Exemple #2
0
 public void Run()
 {
     OnMain?.Invoke();
 }
Exemple #3
0
 internal void DoOnStart()
 {
     OnMain?.Invoke();
 }