예제 #1
0
        /// <summary>
        /// Stops the tween from further modifying the target variable and releases it back into the AutoTween pool in TweenManager.
        /// </summary>
        /// <param name="callback">Should the callback be called?</param>
        public void EndTween(bool callback)
        {
            if (callback)
            {
                m_Callback.InvokeIfNotNull();
            }

            m_TweenId = -1;
            TweenManager.Release(this);
        }