public void TriggerDeath(DeathType deathType) { if (PlayerLocked) { return; } bool isFirstDeath = currencyManager.GetDeathCount(deathType) == 0; currencyManager.AddDeath(deathType); events.TriggerEvent(EventManager.EventType.Death, deathType.name); #if UNITY_EDITOR if (NeverDie) { return; } #endif deathScreen.DisplayDeathType(deathType, isFirstDeath); PlayerLocked = true; }