示例#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;
        }
示例#2
0
        public void PlayersCardReset()
        {
            var gdata = App.GameData;

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