public void OpenUI(UIASSETS_ID id, menuTypes type) { if (uiPre == null) { return; } mType = type; if (type == menuTypes.MAIN) { priousUI.Enqueue(id); } ShowUIPanel(uiPre); }
public void OpenUI(string sceneName, menuTypes type) { if (sceneName.Equals("")) { return; } UIASSETS_ID id = (UIASSETS_ID)0; switch (sceneName) { case GlobalValue.StageName_LoginScene: case GlobalValue.StageName_ReLoginScene: id = UIASSETS_ID.UIASSETS_LoginPanel; break; case GlobalValue.StageName_CreateRoleScene: id = UIASSETS_ID.UIASSETS_PanelXuan; break; //case GlobalValue.StageName_AttackScene: //case GlobalValue.StageName_AttackScene_Maze: // break; case GlobalValue.StageName_groupScene: id = UIASSETS_ID.UIASSETS_TeamPanel; break; default: if (GlobalValue.isBattleScene(sceneName)) { id = UIASSETS_ID.UIASSETS_AttackPanel; } else { id = UIASSETS_ID.UIASSETS_MainPanel; } break; } OpenUI(id, type); }
private void Respawn() { Menu = menuTypes.Ingame; MasterAudio.FadeAllPlaylistsToVolume(1f, 3f); ClearTextsAndSprite(VictoryGO); ClearTextsAndSprite(DeathGO); ClearTextsAndSprite(StartGO); ClearTextsAndSprite(TitleGO); }
private void GameStart() { Menu = menuTypes.Title; ClearTextsAndSprite(VictoryGO); ClearTextsAndSprite(DeathGO); ClearTextsAndSprite(StartGO); DarkBG.alpha = 1f; AppearTextsAndSprite(TitleGO); FETool.findWithinChildren(gameObject, "Ingame/Title/Play").GetComponent<TextUI>().color = Color.white; }
private void GameOver() { Menu = menuTypes.Death; MasterAudio.PlaySound("death"); StartCoroutine("sayDied"); }
private void EndGame() { Menu = menuTypes.Victory; StartCoroutine("WinPlz"); }