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); }
/// <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 SetBattleEndWndState(FBEndType endType, bool isActive = true) { battleMgr.isPauseGame = true; battleEndWnd.SetWndType(endType); battleEndWnd.SetWndState(isActive); }
public void SetWndType(FBEndType endType) { this.endType = endType; }
public void SetBattleEndWindow(FBEndType endType, bool isActive = true) { battleEndWindow.SetWindType(endType); battleEndWindow.SetWindowState(isActive); }
public void EndBattle(FBEndType endType, bool isWin, int restHp) { AudioSvc.Instance.StopBGMusic(); BattleSys.Instance.EndBattle(endType, isWin, restHp); }
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); }