Example #1
0
        public static void Release(AutoTween tween)
        {
#if UNITY_EDITOR
            if (!Application.isPlaying)
            {
                return;
            }
#endif
            instance.m_ActiveTweens.Remove(tween);

            if (tween.GetType() == typeof(AutoTweenFloat))
            {
                instance.m_TweenFloatQueue.tweens.Enqueue((AutoTweenFloat)tween);
            }
        }
Example #2
0
        public static void EndTween(int id, bool callCallback = false)
        {
#if UNITY_EDITOR
            if (!Application.isPlaying)
            {
                return;
            }
#endif
            for (int i = 0; i < instance.m_ActiveTweens.Count; i++)
            {
                AutoTween tween = instance.m_ActiveTweens[i];

                if (tween.tweenId == id)
                {
                    tween.EndTween(callCallback);
                }
            }
        }