Exemplo n.º 1
0
 public override void Removed()
 {
     if (stoleAttack)
     {
         owner.Attack++;
     }
     owner.MaxHealth++;
     owner.SetHealth(owner.GetHealth() + 1);
 }
Exemplo n.º 2
0
 public override void SetOwner(GameObject newOwner)
 {
     owner = newOwner.GetComponent <CreatureStats>();
     if (stoleAttack)
     {
         owner.Attack--;
     }
     owner.SetHealth(owner.GetHealth() - 1);
     owner.MaxHealth--;
 }
Exemplo n.º 3
0
 public void SetOwner(GameObject newOwner)
 {
     owner = newOwner.GetComponent <CreatureStats>();
     if (stoleAttack)
     {
         owner.Attack++;
     }
     owner.SetHealth(owner.GetHealth() + 1);
     owner.MaxHealth++;
 }
Exemplo n.º 4
0
    public void Removed()
    {
        if (stoleAttack)
        {
            owner.Attack--;
        }
        owner.SetHealth(owner.GetHealth() - 1);
        owner.MaxHealth--;

        UnregisterCallbacks();
    }