5 using System.Collections.Generic;
16 private TextMesh mTextMesh;
23 mTextMesh = GetComponent<TextMesh>();
24 mText = GetComponent<Text>();
26 if (mTextMesh == null && mText == null)
28 Debug.LogError(
"TextMesh or Text is not set in CycleText!");
41 if (mTextMesh != null)
43 mTextMesh.text = Array[index];
48 mText.text = Array[index];
override void Awake()
set the default TargetObject
Sets the text value of a TextMesh or UI Text object based on the selected value of the array ...
override void SetIndex(int index)
Set the text...