//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; } }
public void Run() { OnMain?.Invoke(); }
internal void DoOnStart() { OnMain?.Invoke(); }