Exemple #1
0
 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();
     }
 }
Exemple #2
0
    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;
    }
Exemple #3
0
 public void Test()
 {
     UI_Popup_Global.ShowContent(GameOverPopupContent, false);
 }
Exemple #4
0
 static void ShowGameEndPopup()
 {
     UI_Popup_Global.ShowContent(Resources.Load("UI/ui_popupcontent_game_finished_evac") as GameObject, false);
 }
Exemple #5
0
 // 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);
 }