Exemplo n.º 1
0
 public void ChangeShield(int value)
 {
     if (healthPoint > 0)
     {
         shield += value;
         OnShieldChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 public override void Revive()
 {
     base.Revive();
     Died.Value    = false;
     CurrentHeath  = MaxHP;
     ShieldCurrent = MaxShield;
     OnShieldChanged?.Invoke(0, MaxShield, MaxShield);
     CurrentHealPhy = 0;
     Debug.Log("Revived");
 }
Exemplo n.º 3
0
 protected override void SetUpStart()
 {
     base.SetUpStart();
     if (PlayerCurrent == this)
     {
         OnHeathChanged?.Invoke(0, CurrentHeath, MaxHP);
         OnShieldChanged?.Invoke(0, ShieldCurrent, MaxShield);
         OnHealPhyChanged?.Invoke(0, CurrentHealPhy, MaxHealphy);
     }
 }
Exemplo n.º 4
0
 public void SetShield(int value)
 {
     shield = value;
     OnShieldChanged?.Invoke(this, EventArgs.Empty);
 }