Ejemplo n.º 1
0
 private void OnMouseDown()
 {
     //see if the player can respawn
     if (GlobalManager.GetGlobalManager().GetPlayerController().GetLives() > 0)
     {
         //respawn the player
         GlobalManager.GetGlobalManager().GetPlayerController().AddLives(-1);
         owner.Respawn();
         //destroy self
         Destroy(gameObject);
     }
 }
Ejemplo n.º 2
0
 void RespawnBtnClicked()
 {
     active_unit.Respawn();
 }