protected override void OnTriggerExit(Collider hit) { if (hit.CompareTag(GlobalUtilities.LOCAL_PLAYER_TAG)) { GlobalUtilities.ClearWarningText(); } }
protected override void OnTriggerExit(Collider hit) { HealthSystem health = hit.gameObject.GetComponent <HealthSystem> (); if (health != null) { this._healthSystems.Remove(hit.GetComponent <BaseGameObject>().GetGameObjectName()); if (hit.CompareTag(GlobalUtilities.LOCAL_PLAYER_TAG)) { GlobalUtilities.ClearWarningText(); } } }