Exemplo n.º 1
0
        public void Update()
        {
            if (PlayerControllerActions.Count > 0)
            {
                var action = PlayerControllerActions.Dequeue();

                // Если действие относится к текущему контроллеру, то оно обрабатывается
                if (action.ControllerType == PlayerController.Type)
                {
                    Console.WriteLine("DoCommand " + action.FunctionName);
                    PlayerController.DoCommand(action);
                }
            }
        }