File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Assets/JCSUnity/Scripts/GameObject/3D Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ public class JCS_3DHintBubble
5353
5454 [ Header ( "** Check Variables (JCS_3DHintBubble) **" ) ]
5555
56+ [ Tooltip ( "Flag to check if the hint bubble active." ) ]
57+ [ SerializeField ]
58+ private bool mActive = false ;
59+
5660 [ Tooltip ( "Tweener handler to do tween to the hint bubble." ) ]
5761 [ SerializeField ]
5862 private JCS_TweenerHandler mTweenerHandler = null ;
@@ -63,6 +67,7 @@ public class JCS_3DHintBubble
6367
6468 /* Setter & Getter */
6569
70+ public bool active { get { return this . mActive ; } }
6671 public TextMeshPro TextMesh { get { return this . mTextMesh ; } }
6772 public JCS_TweenerHandler TweenerHandler { get { return this . mTweenerHandler ; } }
6873 public JCS_FadeObject FadeObject { get { return this . mFadeObject ; } }
@@ -111,6 +116,8 @@ public void Active()
111116 {
112117 TweenerHandler . DoAllTweenToTargetValue ( ) ;
113118 mFadeObject . FadeIn ( ) ;
119+
120+ this . mActive = true ;
114121 }
115122
116123 /// <summary>
@@ -120,6 +127,8 @@ public void Deactive()
120127 {
121128 TweenerHandler . DoAllTweenToStartValue ( ) ;
122129 mFadeObject . FadeOut ( ) ;
130+
131+ this . mActive = false ;
123132 }
124133 }
125134}
You can’t perform that action at this time.
0 commit comments