Esempio n. 1
0
 public void Reset()
 {
     curShowNum = 0;
     mAdd.text  = "";
     mAdd.alpha = 0;
     mAni.Stop();
     mAni.gameObject.SetActive(false);
 }
Esempio n. 2
0
 public AchieveItemUI(GameObject gObj)
 {
     mObj      = gObj;
     mNum      = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label1");
     mAdd      = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label2");
     mAni      = ObjectCommon.GetChildComponent <UISpriteAnimation>(mObj, "AchieveAni");
     mAni.loop = false;
     mAni.Stop();
     mAni.gameObject.SetActive(false);
     mAdd.gameObject.SetActive(true);
     mIcon = mObj.GetComponent <UISprite>();
 }
Esempio n. 3
0
 protected void SecondFinger(GameFrameworkAction secondEvent)
 {
     m_SlapEffect.gameObject.SetActive(true);
     m_SlapEffect.Rewind(() =>
     {
         m_SlapEffect.Rewind(() =>
         {
             m_SlapEffect.Rewind(() =>
             {
                 m_SlapEffect.Stop();
                 m_SlapEffect.gameObject.SetActive(false);
                 if (secondEvent != null)
                 {
                     secondEvent();
                 }
             });
         });
     });
 }
Esempio n. 4
0
 void stopToggleAni()
 {
     mAnimation.Stop();
     mAnimation.gameObject.SetActive(false);
 }