public void UnregisterEventCallbacks() { UseAbilityEventInfo.UnregisterListener(OnAbilityUsed); AbilityHitEventInfo.UnregisterListener(OnAbilityHit); }
void OnAbilityUsed(UseAbilityEventInfo useAbilityEventInfo) { Debug.Log("AnimationController Alerted to Ability used!"); useAbilityEventInfo.UnitGO.GetComponent <Animator>().SetTrigger("OnAttack"); }
void RegisterEventCallbacks() { UseAbilityEventInfo.RegisterListener(OnAbilityUsed); AbilityHitEventInfo.RegisterListener(OnAbilityHit); }