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(); } } }
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(); } } } }
public void Victory() { _game_UGui.Victory(); GameManager.Instance.ChangeState(GameState.GameOver); }