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