Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 void OnReviveEvent(ReviveEvent e)
 {
     this.OnRevive();
 }
Esempio n. 3
0
 void OnReviveEvent(ReviveEvent e)
 {
     this.OnCombatAgentRevive();
 }
Esempio n. 4
0
 public void Revive()
 {
     IsDead = false;
     gameObject.SetActive(!IsDead);
     ReviveEvent?.Invoke();
 }