void OnRush() { if (ADR_Prompt_Shown == 0 && !MissionSystem.Instance.HasCompleted("kill_enemy_1")) { UI_Popup_Global.ShowContent(ADR_Tutorial_PopupContent, true); UI_Popup_Global.Instance.OnCloseDone += ShowSpecialPrompt; } else if (ADR_Prompt_Shown < 2) { ShowSpecialPrompt(); } }
void Start() { GameEndListener.OnMissionEnded += GameEnd; startTurn = new TutorialStartTurn(); startTurn.RegisterTurn(); GameObject.FindObjectOfType <UI_TurnList>().gameObject.SetUIAlpha(0); GameObject.FindObjectOfType <UI_ActiveUnit>().gameObject.SetUIAlpha(0); _patrol_chance = Constants.AI_PATROL_CHANCE; Constants.AI_PATROL_CHANCE = 1; UI_Popup_Global.ShowContent(Intro_PopupContent, true); UI_Popup_Global.Instance.OnCloseDone += StartMission; }
public void Test() { UI_Popup_Global.ShowContent(GameOverPopupContent, false); }
static void ShowGameEndPopup() { UI_Popup_Global.ShowContent(Resources.Load("UI/ui_popupcontent_game_finished_evac") as GameObject, false); }
// Use this for initialization void Start() { new MissionOutcome(3, 2, 2000, 3, 3, 0.5f, 2, 3); UI_Popup_Global.ShowContent(Resources.Load("UI/ui_popupcontent_game_finished_evac") as GameObject, false); }