private void ReviveCharacter()
 {
     if (playableCharacter.GetComponent <Health>().CurrentHealth <= 0)
     {
         playableCharacter.GetComponent <Health>().Revive();
         playableCharacter.transform.position = spawnPosition.position;
     }
 }
Example #2
0
 public void SetOwner(RobotCharacter owner)
 {
     WeaponOwner = owner;
     controller  = WeaponOwner.GetComponent <RobotController>();
 }