Example #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;
        }
    }
Example #2
0
 public void Run()
 {
     OnMain?.Invoke();
 }
Example #3
0
 internal void DoOnStart()
 {
     OnMain?.Invoke();
 }