@@ -59,7 +59,7 @@ public class JCS_TextTimer
5959
6060 [ Tooltip ( "Target text renderer." ) ]
6161 [ SerializeField ]
62- private Text mText = null ;
62+ private Text mTextContainer = null ;
6363
6464#if TMP_PRO
6565 [ Tooltip ( "Target text renderer." ) ]
@@ -111,7 +111,7 @@ public class JCS_TextTimer
111111 public bool Active { get { return this . mActive ; } set { this . mActive = value ; } }
112112 public bool RoundUp { get { return this . mRoundUp ; } set { this . mRoundUp = value ; } }
113113 public bool HideWhenZero { get { return this . mHideWhenZero ; } set { this . mHideWhenZero = value ; } }
114- public Text text { get { return this . mText ; } set { this . mText = value ; } }
114+ public Text TextContainer { get { return this . mTextContainer ; } set { this . mTextContainer = value ; } }
115115#if TMP_PRO
116116 public TextMeshPro TextMesh { get { return this . mTextMesh ; } set { this . mTextMesh = value ; } }
117117#endif
@@ -198,7 +198,7 @@ public void UpdateTimeUI()
198198 public void UpdateTimeUI ( float hour , float minute , float second )
199199 {
200200#if TMP_PRO
201- if ( mText == null && mTextMesh == null )
201+ if ( mTextContainer == null && mTextMesh == null )
202202#else
203203 if ( mText == null )
204204#endif
@@ -211,8 +211,8 @@ public void UpdateTimeUI(float hour, float minute, float second)
211211 DoMinuteUI ( minute ) ;
212212 DoSecondUI ( second ) ;
213213
214- if ( mText )
215- mText . text = mHoursText + mMinutesText + mSecondsText ;
214+ if ( mTextContainer )
215+ mTextContainer . text = mHoursText + mMinutesText + mSecondsText ;
216216#if TMP_PRO
217217 if ( mTextMesh )
218218 mTextMesh . text = mHoursText + mMinutesText + mSecondsText ;
0 commit comments