private void EnemyKilledHandler(EnemyLifeSystem _) { if (!_coroutineIsStarted) { StartCoroutine(ApplyDilation()); } }
private void Respawn() { if (_killedEnemy != null) { _killedEnemy.transform.position = transform.position; _killedEnemy.transform.rotation = transform.rotation; _killedEnemy.SetActiveRagdollPhysics(false); _killedEnemy.SetAlive(); _killedEnemy = null; } }
private void EnemyKilledHandler(EnemyLifeSystem killedEnemy) => _killedEnemy = killedEnemy;