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); }
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); }