Esempio n. 1
0
 void Start()
 {
     PlayerReference = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();;
     canBePickedUp   = false;
     if (eqStats == null)
     {
         eqStats = new equipmentStats(strength, agility, intelligence);
     }
 }
Esempio n. 2
0
 public void addStatsFromItem(equipmentStats equip)
 {
     if (equip != null)
     {
         cStat.equipStrength     += equip.strength;
         cStat.equipAgility      += equip.agility;
         cStat.equipIntelligence += equip.intelligence;
     }
 }
Esempio n. 3
0
 public void setStats(int str, int agi, int intl)
 {
     Debug.Log(str);
     strength     = str;
     agility      = agi;
     intelligence = intl;
     if (eqStats == null)
     {
         eqStats = new equipmentStats(str, agi, intl);
     }
     else
     {
         eqStats.strength     = str;
         eqStats.agility      = agi;
         eqStats.intelligence = intl;
     }
 }