/// <summary> /// 副本结束处理 /// </summary> /// <param name="endType"></param> /// <param name="isWin"></param> /// <param name="restHp"></param> public void EndBattle(FBEndType endType, bool isWin, int restHp) { playerCtrlWindow.SetWindowState(false); GameRoot.Instance.dynamicWindow.RemoveAllItemHp(); if (isWin) { GameMsg msg = new GameMsg { cmd = (int)(CMD.ReqFBFightEnd), reqFBFightEnd = new ReqFBFightEnd { isWin = isWin, fbid = fbid, restHp = restHp, costTime = (int)(timerSvc.GetNowTime() - startTime), } }; netSvc.SendMsg(msg); } SetBattleEndWindow(endType, true); }
public void SetPlayerCtrlWindowState(bool isActive) { playerCtrlWindow.SetWindowState(isActive); }