private IEnumerator PostponeAppend(StringBuilder sb, CharacterAttribute statistic) { while (characterScript.PlayerInfo == null || characterScript.PlayerInfo.Stats == null) { yield return(new WaitForEndOfFrame()); } sb.Append(characterScript.StatValue(statistic)); StatText.text = sb.ToString(); }
public void UpdateDisplayedValue() { AttributeValueText.text = creationScript.StatValue(Attribute).ToString(); GameObject.Find("Points Left Value").GetComponent <Text>().text = creationScript.StatPointsLeft.ToString(); }