Example #1
0
        /// <summary>
        /// 游戏数据重置
        /// </summary>
        public void Reset()
        {
            _dealPokers = false;
            TurnRes.Reset();
            MatchMgr.Reset();
            Dealer.Reset();
            ResultMgr.Reset();
            ChoiseMgr.Reset();
            ClockCd.StopCountDown();

            foreach (GameObject bet in Bets)
            {
                Destroy(bet);
            }

            Bets.Clear();

            var gdata = App.GetGameData <SssGameData>();

            foreach (var player in gdata.PlayerList)
            {
                var user = (SssPlayer)player;
                user.Reset();
            }

            gdata.IsPlaying = false;
        }
Example #2
0
        /// <summary>
        /// 游戏数据重置
        /// </summary>
        public void Reset()
        {
            _dealPokers = false;
            TurnRes.Reset();

            ResultMgr.Reset();
            ChoiseMgr.Reset();
            ClockCd.StopCountDown();

            foreach (GameObject bet in Bets)
            {
                Destroy(bet);
            }

            Bets.Clear();

            var gdata = App.GetGameData <SssGameData>();

            gdata.IsPlaying = false;
        }