private void ProcStopTweenAll() { for (int i = 0; i < iCachedTweenCount; i++) { UITweener pUITween = _listTween[i]; pUITween.enabled = false; pUITween.ResetToFactor(); pUITween.ResetToBeginning(); } }
private void ProcStopTweenGroup(int iGroupID) { for (int i = 0; i < iCachedTweenCount; i++) { UITweener pUITween = _listTween[i]; if (pUITween.tweenGroup != iGroupID) { continue; } pUITween.enabled = false; pUITween.ResetToFactor(); pUITween.ResetToBeginning(); } }
// ========================================================================== // /* private - [Proc] Function * 중요 로직을 처리 */ private void ProcPlayTweenGroup(int iGroupID, float fDelay, ETweenPlay eTweenPlay) { for (int i = 0; i < iCachedTweenCount; i++) { UITweener pUITween = _listTween[i]; if (pUITween.tweenGroup != iGroupID) { continue; } if (fDelay > 0f) { pUITween.delay = fDelay; } pUITween.ResetToFactor(); pUITween.Play(eTweenPlay == ETweenPlay.Forward); pUITween.ResetToBeginning(); } }