示例#1
0
        private void Start()
        {
            var health = GetComponent <Health>();

            if (health != null)
            {
                health.OnDeath += () => ExperienceEvent.Trigger(ExperienceEventType.Add, LevelManager.Instance.Players[0].gameObject, Experience);
            }
        }
示例#2
0
 private void TriggerEvent()
 {
     ExperienceEvent.Trigger(Type, Target, Experience);
 }