// Use this for initialization void Start() { SoundManage.Instance.Menu.Play(); this._main = GetComponentInChildren<Menu_Main>(); ErrorLog.CheckComponentExist(this._main, "Menu_Main", this.name); this._main.Initial(); SetMenuByStatus( MenuState.None ); }
private void Start() { //----- If its the menu if (SceneManager.GetActiveScene().name == "Menu") { endlessMode = GetComponent <Menu_EndlessMode>(); menuMain = GetComponent <Menu_Main>(); timeAttackMode = GetComponent <Menu_TimeAttack>(); } else { gameHud = GetComponent <Hud>(); gameHud.Init(); } }
public void TerminateAlert() { Menu_Main aMenuMain = UIManager.GetInstance().GetMenu("Menu_Main").GetComponent <Menu_Main>(); aMenuMain.UI_Alert.SetActive(false); }