Example #1
0
 void RpcTakeDamage(float value, bool died)
 {
     currentHealth = value;
     if (died)
     {
         playerScript.Die();
     }
 }
Example #2
0
 protected override void Die()
 {
     _isDead = true;
     _playerController.Die();
 }