protected override IEnumerator BufferProcess()
        {
            CurrentEffect.Action(selfCharacter);
            yield return(waiter);

            currentTime += currentTickRate;
            CurrentEffect.DisableAction(selfCharacter);
            NextEffect();
        }
예제 #2
0
        protected override IEnumerator BufferProcess()
        {
            while (true)
            {
                yield return(waiter);

                if (Effects.Count > 0)
                {
                    CurrentEffect.Action(selfCharacter);
                    currentTime += 1;

                    if (CurrentEffect.MaxTime - currentTime < 0.05)
                    {
                        NextEffect();
                    }
                }
            }
        }