private void Assassinate(BasicEnemy enemy) { if (!enemy) { return; } attackSound.Play(); enemy.Assasinate(); }
private IEnumerator KillEnemyAfterCoroutine(BasicEnemy enemy, float seconds) { yield return(new WaitForSeconds(seconds)); enemy.Assasinate(); }