Пример #1
0
        public void NextCommand()
        {
            VirtualCommand command = gameplayDesigner.GetNextCommand();

            if (command == null)
            {
                return;
            }

            command.Execute();
        }
Пример #2
0
        void Next()
        {
            //Debug.Log("it - " + iterator);

            if (iterator >= commands.Count)
            {
                Finish();
                return;
            }

            VirtualCommand com = commands[iterator];

            //commands.RemoveAt(0);
            iterator++;
            com.Execute();
        }