Example #1
0
 public void reduce()
 {
     if (statChange > 0)
     {
         statsInit statFFU = player.GetComponent <statsInit>();
         statFFU.statPool += 1;
         stat--;
         statChange--;
         text.text = stat.ToString();
         statPool++;
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        player = GameObject.Find("Cube");


        statsInit statFFU = player.GetComponent <statsInit>();

        statPool = statFFU.statPool;
        int f**k = statFFU.statsTable[type];

        stat       = f**k;
        statChange = 0;
        text.text  = stat.ToString();
    }
Example #3
0
    public void add()
    {
        player = GameObject.Find("Cube");
        statsInit statFFU = player.GetComponent <statsInit>();

        statPool = statFFU.statPool;

        if (statPool > 0)
        {
            stat++;
            statChange++;
            text.text         = stat.ToString();
            statFFU.statPool -= 1;
            statPool--;
        }
    }