Exemplo n.º 1
0
 public void SetCharacterInformation(Texture2D sprite, Type characterType)
 {
     characterSprite    = sprite;
     this.characterType = characterType;
     abilityDescription = (characterType == null)? null : (string)characterType.GetField("AbilityDescription").GetRawConstantValue();
     //long string - wrap it using the text wrapper.
     descriptionLines = (characterType == null)? null : UiTools.WrapText(textFont, abilityDescription, width, textPadding, 1f);
 }