Пример #1
0
 void OnMouseDown()
 {
     if (!game_uGUI.in_pause)
     {
         my_game_uGUI.star_number = star_score;
         my_game_uGUI.Victory();
     }
 }
 void OnMouseDown()
 {
     if (!game_uGUI.in_pause)
     {
         if (my_game_uGUI.star_number > 0)
         {
             my_game_uGUI.Victory();
         }
         else
         {
             my_game_uGUI.Defeat();
         }
     }
 }
Пример #3
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         if (!game_uGUI.stage_end)
         {
             if (my_game_uGUI.star_number > 0)
             {
                 my_game_uGUI.Victory();
             }
             else
             {
                 my_game_uGUI.Defeat();
             }
         }
     }
 }
Пример #4
0
 public void Victory()
 {
     _game_UGui.Victory();
     GameManager.Instance.ChangeState(GameState.GameOver);
 }