public void setChildPower(ParentalPower fPower, ParentalPower mPower) { childPower = new ChildPower(fPower, mPower); GameObject.Find("Child Power Description").GetComponent <Text>().text = childPower.description; GameObject.Find("Child Power Name").GetComponent <Text>().text = childPower.powerName; GameObject.Find("Child").GetComponent <Text>().text = ( "Strength: " + (int)childPower.strength + "\nAgility: " + (int)childPower.agility + "\nWill: " + (int)childPower.will + "\nFortitude: " + (int)childPower.fortitude); canSave = true; }
private void displayPlayerStats() { ChildPower playerPower = PlayerData.playerData.playerPower; GameObject.Find("Player Data Text").GetComponent <Text>().text = ( playerPower.powerName + "\nSTATS:" + "\nStrength: " + (int)playerPower.strength + "\nAgility: " + (int)playerPower.agility + "\nWill: " + (int)playerPower.will + "\nFortitude: " + (int)playerPower.fortitude + "\nTime: " + GlobalData.globalData.years + " years, " + GlobalData.globalData.months + " months, " + GlobalData.globalData.days + " days" ); }