public PBConnect_multiFight.RESULT CheckClearBattle(GameObject parent, int magicId) { PBConnect_multiFight.RESULT r = PBConnect_multiFight.CheckMultyFight(magicId, 1); if (r != PBConnect_multiFight.RESULT.OK) { switch (r) { case PBConnect_multiFight.RESULT.LACK_TIMES: { string msg = "剩余挑战次数不足"; UIHelper.ShowTextPromptPanel(parent, msg); } break; case PBConnect_multiFight.RESULT.LACK_ENERGY: { string msg = "剩余体力不足"; UIHelper.ShowTextPromptPanel(parent, msg); } break; case PBConnect_multiFight.RESULT.LACK_STAR: { string msg = "需要三星级通关才可进行扫荡"; UIHelper.ShowTextPromptPanel(parent, msg); } break; } } return(r); }
// ===================================== // clear battle public void SrartClearBattle(int magicId, int count, PBConnect_multiFight.DelegateConnectCallback callback, GameObject parent) { PBConnect_multiFight.RESULT result = PBConnect_multiFight.MultiFight(magicId, count, callback); switch (result) { case PBConnect_multiFight.RESULT.LACK_TIMES: { string msg = "剩余挑战次数不足"; UIHelper.ShowTextPromptPanel(parent, msg); } break; case PBConnect_multiFight.RESULT.LACK_ENERGY: { string msg = "剩余体力不足"; UIHelper.ShowTextPromptPanel(parent, msg); } break; case PBConnect_multiFight.RESULT.LACK_STAR: { string msg = "需要三星级通关才可进行扫荡"; UIHelper.ShowTextPromptPanel(parent, msg); } break; } }