protected override void CheckOperate() { base.CheckOperate(); //if(!GameConfig.IsMultiMode) //{ if (PeInput.Get(PeInput.LogicFunction.InteractWithItem) && CanCmd()) { /* * if (Operatable() && CheckSleepEnable()) * { * DoSleep(12f); * } * */ CmdList list = simpleObjPart.GetCmdList(); if (list.count <= 0) { return; } CmdList.Cmd cmd = list.Get(0); if (cmd == null) { return; } cmd.exe(); } //} }
protected override void InitCmd(CmdList cmdList) { //base.InitCmd(cmdList); if (simpleObjPart.CanRotateObject()) { cmdList.Add("Turn", Turn90Degree); } if (simpleObjPart.CanRecycle()) { cmdList.Add("Get", OnGetBtn); } //if (!GameConfig.IsMultiMode) //{ CmdList list = simpleObjPart.GetCmdList(); for (int i = 0; i < list.count; i++) { cmdList.Add(list.Get(i)); } // } }