public void OnGetBombed(float damage) { if (health != null) { health.Add(-damage); if (health.IsDead()) { gameObject.SetActive(false); personality = null; if (Diagnostic.Instance.enemyReference == gameObject) { Diagnostic.Instance.enemyReference = null; } } } Diagnostic.Instance.UpdateHealth(this.gameObject, health.GetHealth()); if (personality != null) { personality.OnGetBombed(); } }