16 [Tooltip(
"LabelTheme for switching the default and selected labels")]
19 [Tooltip(
"tag for the color theme")]
20 public string ColorThemeTag =
"defaultColor";
22 [Tooltip(
"tag for the position theme")]
23 public string PositionThemeTag =
"defaultPosition";
25 [Tooltip(
"position animation component: optional")]
33 private TextMesh mText;
35 private string mCheckColorThemeTag =
"";
36 private string mCheckPositionThemeTag =
"";
43 if (MovePosition == null)
45 MovePosition = GetComponent<MoveToPosition>();
48 mText = this.gameObject.GetComponent<TextMesh>();
59 if (ColorThemeTag !=
"")
61 mColorTheme = GetColorTheme(ColorThemeTag);
62 mCheckColorThemeTag = ColorThemeTag;
65 if (PositionThemeTag !=
"")
67 mPositionTheme = GetVector3Theme(PositionThemeTag);
68 mCheckPositionThemeTag = PositionThemeTag;
82 if (mColorTheme != null)
87 if (ButtonLabels != null)
89 if (InteractiveHost.IsSelected)
97 mText.text = ButtonLabels.
Default;
102 mText.text = ButtonLabels.
Default;
107 if (mPositionTheme != null)
109 if (MovePosition != null)
116 transform.localPosition = mPositionTheme.
GetThemeValue(state);
121 private void Update()
123 if (!mCheckPositionThemeTag.Equals(PositionThemeTag) || !mCheckColorThemeTag.Equals(ColorThemeTag))