Beispiel #1
0
 public void LevelUp()
 {
     _level++;
     if (_level > 2)
     {
         _time++;
         SoundMng.GetInstance.Play(5);
         _level = 0;
         if (_time > 2)
         {
             _day++;
             SoundMng.GetInstance.Play(6);
             if (_day == 2 || _day == 3)
             {
                 GameObject.Find("UI_control").GetComponent <UI_control>().daychange = true;
             }
             _time = 0;
             if (_day > 3)
             {
                 GameMng.GetInstance._isPlaying = false;
                 _time--;
                 _day--;
                 _zombie.CalculatingEnding();
                 SoundMng.GetInstance.Play(7);
                 // go ending
             }
         }
     }
     TextApply();
 }