示例#1
0
 public void OnWin(string message)
 {
     endGame.OnGameEnded(score, highScore, message);
     animator.SetTrigger("onGameEnd");
     progressManager.enabled = false;
     //destroy health so player is no longer targeted
     Destroy(activePlayerInstance.GetComponent <Health>());
 }