public ChoiceContent GetChoiceContent(HUDContentType type) { ChoiceContent cc = DataHolder.Skills().GetChoiceContent(this.skillID, type); cc.content.text = this.GetName(); return cc; }
public ChoiceContent GetTimeContent(HUDContentType type) { ChoiceContent cc = null; if(HUDContentType.TEXT.Equals(type)) { cc = new ChoiceContent(new GUIContent(this.GetTimeText())); } else if(HUDContentType.ICON.Equals(type)) { cc = new ChoiceContent(new GUIContent(this.timeIcon)); } else if(HUDContentType.BOTH.Equals(type)) { cc = new ChoiceContent(new GUIContent(this.GetTimeText(), this.timeIcon)); } return cc; }