示例#1
0
 private void OnBattleStart(MobaMessage msg)
 {
     if (SurrenderMgr.IsVisible(this._activeSurrenderInfo))
     {
         CtrlManager.OpenWindow(WindowID.SurrenderView, null);
     }
 }
示例#2
0
        private void TryUpdateInfo(ActiveSurrenderInfo info)
        {
            TeamType teamType = this.IsLm(info);

            if (Singleton <PvpManager> .Instance.SelfTeamType == teamType && SurrenderMgr.IsVisible(info))
            {
                this._activeSurrenderInfo = info;
                this.HasAllVoted          = (info.validVoters.Count == info.votes.Count);
                CtrlManager.OpenWindow(WindowID.SurrenderView, null);
                MobaMessageManager.DispatchMsg((ClientMsg)23064, info, 0f);
            }
        }