예제 #1
0
        public void nextStep()
        {
            if (aiSteps.Count > 0)
            {
                if (CurrentStep.isDone)
                {
                    CurrentStep.isDone = false;
                    current++;

                    if (current >= aiSteps.Count)
                    {
                        current = 0;
                    }
                }
                else
                {
                    CurrentStep.nextStep();
                    CurrentStep.update();
                }
            }
        }