public void Reset() { curShowNum = 0; mAdd.text = ""; mAdd.alpha = 0; mAni.Stop(); mAni.gameObject.SetActive(false); }
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>(); }
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(); } }); }); }); }
void stopToggleAni() { mAnimation.Stop(); mAnimation.gameObject.SetActive(false); }