Example #1
0
 private void KillBy(PlayerAI killer)
 {
     if (invincibilityRemaining > 0)
     {
         return;
     }
     IncrementScore(-10);
     StartCoroutine(Reactivate());
     rotationObject.SetActive(false);
     EndInvincibility();
     invincibilityRemaining = spawnInvincibilityDuration;
     insideAoeDuration      = 0;
     killer.IncrementScore(20);
     dead = true;
 }