private void Update()
    {
        SetHealth(creature.GetHealth());
        SetDefence(creature.Defense);
        SetAttack(creature.Attack);

        //LeanTween.value(HealthText.gameObject, SetTextValue)
    }
예제 #2
0
 public override void Removed()
 {
     if (stoleAttack)
     {
         owner.Attack++;
     }
     owner.MaxHealth++;
     owner.SetHealth(owner.GetHealth() + 1);
 }
예제 #3
0
 public override void SetOwner(GameObject newOwner)
 {
     owner = newOwner.GetComponent <CreatureStats>();
     if (stoleAttack)
     {
         owner.Attack--;
     }
     owner.SetHealth(owner.GetHealth() - 1);
     owner.MaxHealth--;
 }
예제 #4
0
 public void SetOwner(GameObject newOwner)
 {
     owner = newOwner.GetComponent <CreatureStats>();
     if (stoleAttack)
     {
         owner.Attack++;
     }
     owner.SetHealth(owner.GetHealth() + 1);
     owner.MaxHealth++;
 }
예제 #5
0
    public void Removed()
    {
        if (stoleAttack)
        {
            owner.Attack--;
        }
        owner.SetHealth(owner.GetHealth() - 1);
        owner.MaxHealth--;

        UnregisterCallbacks();
    }