Exemple #1
0
 void OnBossActive(bool isOn)
 {
     CancelInvoke();
     Reset();
     if (isOn)
     {
         OnGenericUIText("Kill 'em all");
     }
     else
     {
         if (Data.Instance.playMode == Data.PlayModes.STORYMODE)
         {
             GetComponent <SummaryMobile>().Init();
             return;
         }
         else
         {
             levelComplete.gameObject.SetActive(true);
             levelComplete.Init(Data.Instance.missions.MissionActiveID);
         }
     }
     Invoke("Reset", 2);
 }
 void OnMissionComplete(int num)
 {
     //pontura if (Data.Instance.playMode == Data.PlayModes.COMPETITION ) return;
     levelComplete.gameObject.SetActive(true);
     levelComplete.Init(num);
 }