Esempio n. 1
0
        public void Kill()
        {
            if (!IsPlaying)
            {
                return;
            }

            IsPlaying   = false;
            IsCompleted = true;

            OnTweenKill();

            OnKill?.Invoke();
            OnCompleteOrKill?.Invoke();
        }
Esempio n. 2
0
        protected void NewMarkCompleted()
        {
            if (!IsPlaying)
            {
                return;
            }

            bool loops = NewLoop(LoopResetMode);

            if (loops)
            {
                return;
            }

            IsPlaying   = false;
            IsCompleted = true;

            OnTweenComplete();

            OnComplete?.Invoke();
            OnCompleteOrKill?.Invoke();
        }