void getCurrentFuben(ErlKVMessage msg) { ErlType type = msg.getValue("sid") as ErlType; int sid = StringKit.toInt(type.getValueString()); if (sid > 0) { //放弃副本 MiniFport.access(cm, FrontPort.FUBEN_ABANDON, (msg2) => { log("进入副本"); //进入副本 MiniFuBenIntoFPort f = new MiniFuBenIntoFPort(); f.cm = cm; f.intoFuben(missionSid = sid, 1, IntoFubenBack); }); } else { log("进入副本"); //进入副本 MiniFuBenIntoFPort f = new MiniFuBenIntoFPort(); f.cm = cm; f.intoFuben(missionSid++, 1, IntoFubenBack); } }
void fuben(int sid) { //MiniFport.access(cm,new ErlKVMessage (FrontPort.FUBEN_GET_CURRENT),getCurrentFuben); //放弃副本 MiniFport.access(cm, FrontPort.FUBEN_ABANDON, (msg2) => { log("进入副本"); //进入副本 MiniFuBenIntoFPort f = new MiniFuBenIntoFPort(); f.cm = cm; f.intoFuben(sid, 1, IntoFubenBack); }); }