Example #1
0
 /// <summary>
 /// Sets unit healt to starting healt and position to zero. Or if commented keeps the current position.
 /// </summary>
 public void Respawn()
 {
     Health.SetHealth(_startingHealth);
     transform.position = new Vector3(0, 0, 0);
 }
Example #2
0
 public void TakeDamage(int amount)
 {
     Health.TakeDamage(amount);
 }