Exemple #1
0
        public override ParamGroup ExcCmd()
        {
            SingleManager <SnakeManager> .Get().CreateCmd <RotateCmd>(this, group.GetParam(CmdType.Rotate))?.Exc();

            SingleManager <SnakeManager> .Get().CreateCmd <MoveCmd>(this, group.GetParam(CmdType.Move))?.Exc();

            return(group);
        }
Exemple #2
0
        public override ParamGroup ExcCmd()
        {
            ParamGroup param = cmdFlow.Dequeue();

            SingleManager <SnakeManager> .Get().CreateCmd <RotateCmd>(this, param.GetParam(CmdType.Rotate))?.Exc();

            SingleManager <SnakeManager> .Get().CreateCmd <MoveCmd>(this, param.GetParam(CmdType.Move))?.Exc();

            return(param);
        }