void Die() { isDead = true; StartCoroutine(Dying()); character.Die(); EnemyController.enemyCount--; Unsubscribe(); order = -9; UpdateScreenPosition(); }
void Victory() { EnemyTakeHit(true); //string endingText = string.Format ("{0} was defeated!\n\nYou win!", enemy.name); StartCoroutine(PlayEnding(enemy.data.win)); enemy.Die(); }