private void Dead() { DeathEffect(); DeathEvent.EnemyDiedShake(); DeathEvent.EnemyDied(xp); GetComponent <IReset>().OnDeathReset(); gameObject.SetActive(false); }