Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     bdh = GameObject.FindGameObjectWithTag("Player").GetComponent<BuffDebuffHandler>();
     if (bdh.CheckBuff(Title))
     {
         notstacking = true;
         Destroy(gameObject);
     }
     else
     {
         bdh.ApplyBuff(Title, Description, Icon, health, stambonus, healthregenbonus, stamregenbonus, equiploadbonus, maxequiploadbonus, runspeedbonus, poisresistbonus, ssresistbonus, tenacitybonus, swiftnessbonus, ter, lur, sor, chres, lires, inres, deres, spellpower, this);
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     bdh = GameObject.FindGameObjectWithTag("Player").GetComponent <BuffDebuffHandler>();
     if (bdh.CheckBuff(Title))
     {
         notstacking = true;
         Destroy(gameObject);
     }
     else
     {
         bdh.ApplyBuff(Title, Description, Icon, health, stambonus, healthregenbonus, stamregenbonus, equiploadbonus, maxequiploadbonus, runspeedbonus, poisresistbonus, ssresistbonus, tenacitybonus, swiftnessbonus, ter, lur, sor, chres, lires, inres, deres, spellpower, this);
     }
 }