public void HealthEvent(float value) { hitEvent.RemoveAllListeners(); hitEvent.AddListener(HealthEvent); }
protected override void OnBeforeDestroy() { onHidDamage.RemoveAllListeners(); }
public void HealthEvent(float value) { hitEvent.RemoveAllListeners(); hitEvent.AddListener(HealthEvent); }
protected override void OnBeforeDestroy() { onHidDamage.RemoveAllListeners(); }