Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 public void SetPlayerCtrlWindowState(bool isActive)
 {
     playerCtrlWindow.SetWindowState(isActive);
 }