示例#1
0
 public void SetBattleEndWndState(FBEndType endType, bool isActive = true)
 {
     battleEndWnd.SetWndType(endType);
     battleEndWnd.SetWndState(isActive);
     battleMgr.entitySelfPlayer.SetDir(Vector2.zero);
     battleMgr.entitySelfPlayer.SetBlend(Constants.BlendIdle);
 }
 protected override void OnOpen(object userData)
 {
     base.OnOpen(userData);
     if (userData != null)
     {
         m_BattleEndFormData = userData as BattleEndFormData;
     }
     endType = m_BattleEndFormData.EndType;
     RefreshUI(this, null);
 }
示例#3
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);
 }
示例#4
0
 public void SetBattleEndWndState(FBEndType endType, bool isActive = true)
 {
     battleMgr.isPauseGame = true;
     battleEndWnd.SetWndType(endType);
     battleEndWnd.SetWndState(isActive);
 }
示例#5
0
 public void SetWndType(FBEndType endType)
 {
     this.endType = endType;
 }
示例#6
0
 public void SetBattleEndWindow(FBEndType endType, bool isActive = true)
 {
     battleEndWindow.SetWindType(endType);
     battleEndWindow.SetWindowState(isActive);
 }
示例#7
0
 public void EndBattle(FBEndType endType, bool isWin, int restHp)
 {
     AudioSvc.Instance.StopBGMusic();
     BattleSys.Instance.EndBattle(endType, isWin, restHp);
 }
示例#8
0
 public void SetBattleEndWndState(FBEndType type, bool isActive = true)
 {
     battleEndWnd.SetWndType(type);
     battleEndWnd.SetWndState(isActive);
 }
 private void SetBattleEndWndState(FBEndType endType)
 {
     m_BattleEndFormData.EndType = endType;
     GameEntry.UI.OpenUIForm(UIFormId.BattleEndForm, m_BattleEndFormData);
 }