private void Die() { Debug.Log(gameObject.name + " is dead :("); onDeath?.Raise(); if (gameObject.tag.Equals("Player")) { _sfx.PlayerDeathSFX(); } if (gameObject.tag.Equals("Enemy")) { _sfx.EnemyDeathSFX(); Destroy(gameObject); if (_freezeFrameKill != null) { FreezeFrame.Instance.Freeze(_freezeFrameKill); } } }