Esempio n. 1
0
    IEnumerator Kill()
    {
        ccc.SetMovementEnabled(false);
        isKilling = true;
        StartCoroutine(TaserFlash());
        yield return(new WaitForSeconds(1));

        isKilling = false;
        ccc.SetMovementEnabled(true);
    }
Esempio n. 2
0
 public void Die()
 {
     isDead = true;
     ccc.SetMovementEnabled(false);
     soundWaves.Stop();
     GameOver.instance.EndGameIfNoHostsRemain();
     StartCoroutine(DieCoroutine());
 }