void UpdateLuck() { LuckField.GetComponent <Text> ().text = Luck + ""; this.Att_CritChance = 2 * Dex + 6 * Luck; CritChance.GetComponent <Text> ().text = Att_CritChance + ""; }
void UpdateDexterity() { DexField.GetComponent <Text> ().text = Dex + ""; this.Att_Dmg = 4 * Str + 1 * Dex; this.Att_Speed = 4 * Dex; this.Att_Dodge = 3 * Dex; this.Att_CritChance = 2 * Dex + 6 * Luck; Dmg.GetComponent <Text> ().text = Att_Dmg + ""; Speed.GetComponent <Text> ().text = Att_Speed + ""; Dodge.GetComponent <Text> ().text = Att_Dodge + ""; CritChance.GetComponent <Text> ().text = Att_CritChance + " %"; }