public void OnDestroy() { if (LevelManager.Instance != null && !LevelManager.Instance.IsPaused) { EnemyList.DestroyEnemy(this); } }