public void Awake() { DeathEvent = new DeathEvent(); PickupEvent = new PickupEvent(); HPChangeEvent = new HPChangeEvent(); HPReduceEvent = new HPChangeEvent(); HPRecoverEvent = new HPChangeEvent(); ReviveEvent = new ReviveEvent(); DestroyEvent = new DestroyEvent(); MainPlayerAttack = new MainPlayerAttackEvent(); }
void OnReviveEvent(ReviveEvent e) { this.OnRevive(); }
void OnReviveEvent(ReviveEvent e) { this.OnCombatAgentRevive(); }
public void Revive() { IsDead = false; gameObject.SetActive(!IsDead); ReviveEvent?.Invoke(); }