예제 #1
0
 public override void Set <T>(T value)
 {
     if (typeof(T) == typeof(string))
     {
         UnityUIUtility.SetText(TextUI, value as string);
     }
 }
예제 #2
0
        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);
        }