public void reduce() { if (statChange > 0) { statsInit statFFU = player.GetComponent <statsInit>(); statFFU.statPool += 1; stat--; statChange--; text.text = stat.ToString(); statPool++; } }
// 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(); }
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--; } }