public override void Set <T>(T value) { if (typeof(T) == typeof(string)) { UnityUIUtility.SetText(TextUI, value as string); } }
public override void Set <T>(T value) { TextAnswerData data = value as TextAnswerData; if (data == null) { Debug.LogError(value + " is not a TextAnswerData!"); return; } if (data.UIElementName != ElementID) { return; } isGlobal = data.IsGlobal; variableName = data.VariableName; UnityUIUtility.SetText(Label, data.Text); }