//---------------------- // Protected Functions //---------------------- // Private Functions /// <summary> /// Function assgin to FadeObject in order to let /// the object know when the object to deactive, /// and prepare for next use. /// </summary> private void FadeOutCompleteCallback() { mActive = false; // remove from render queue mIGLogSystem.RemoveFromRenderVec(this); mSlideEffect.Deactive(); }
/// <summary> /// Deactive all the button animation under this panel. /// </summary> private void DeactiveAnim() { JCS_SlideEffect se = null; for (int index = 0; index < mSlideButtons.Length; ++index) { se = mSlideButtons[index]; se.Deactive(); } mSpaceTimer = 0; mBtnCounter = 0; mSoundPlayer.PlayOneShot(mDeactiveClip); mSoundPlayer.PlayOneShot(mInsideDeactiveClip); }
/// <summary> /// Close the panel, include all the button under this panel. /// </summary> private void ClosePanel() { DeactiveAnim(); mSlideEffect.Deactive(); }