private void Start() { var health = GetComponent <Health>(); if (health != null) { health.OnDeath += () => ExperienceEvent.Trigger(ExperienceEventType.Add, LevelManager.Instance.Players[0].gameObject, Experience); } }
private void TriggerEvent() { ExperienceEvent.Trigger(Type, Target, Experience); }