16 [Tooltip(
"A GameObject containing a component that implements ICycle")]
20 private TextMesh mTextMesh;
28 CycleHost = this.gameObject;
29 Debug.Log(
"CycleHost was set to self by default");
32 mTextMesh = GetComponent<TextMesh>();
33 mText = GetComponent<Text>();
35 if (mTextMesh == null && mText == null)
37 Debug.LogError(
"There are no Text Components on this <GameObject:" + this.gameObject.name +
">");
40 mCycleHost = CycleHost.GetComponent<
ICycle>();
48 if (mTextMesh != null && mCycleHost != null)
53 if (mText != null && mCycleHost != null)