Пример #1
0
        public override void OnClientStateEnter()
        {
            CurrentRoundStatus.SetCurrentPlaceIndex(TsumoPlayerIndex);
            var placeIndex = CurrentRoundStatus.CurrentPlaceIndex;

            CurrentRoundStatus.DrawTile(placeIndex, WinningTile);
            var data = new SummaryPanelData
            {
                HandInfo = new PlayerHandInfo
                {
                    HandTiles         = TsumoHandData.HandTiles,
                    OpenMelds         = TsumoHandData.OpenMelds,
                    WinningTile       = WinningTile,
                    DoraIndicators    = DoraIndicators,
                    UraDoraIndicators = UraDoraIndicators,
                    IsRichi           = IsRichi,
                    IsTsumo           = true
                },
                PointInfo   = new PointInfo(TsumoPointInfo),
                TotalPoints = TotalPoints,
                PlayerName  = TsumoPlayerName
            };

            // reveal hand tiles
            controller.StartCoroutine(controller.RevealHandTiles(placeIndex, TsumoHandData));
            controller.StartCoroutine(ShowAnimations(placeIndex, data));
        }
Пример #2
0
        private void HandleOtherPlayerDraw()
        {
            CurrentRoundStatus.SetCurrentPlaceIndex(PlayerIndex);
            int placeIndex = CurrentRoundStatus.CurrentPlaceIndex;

            CurrentRoundStatus.DrawTile(placeIndex);
            CurrentRoundStatus.SetMahjongSetData(MahjongSetData);
            Debug.Log($"LastDraws: {string.Join(",", CurrentRoundStatus.LastDraws)}");
        }
Пример #3
0
        private void HandleLocalPlayerDraw()
        {
            CurrentRoundStatus.SetCurrentPlaceIndex(PlayerIndex);
            var placeIndex = CurrentRoundStatus.CurrentPlaceIndex;

            Assert.IsTrue(placeIndex == 0);
            CurrentRoundStatus.DrawTile(placeIndex, Tile);
            CurrentRoundStatus.SetMahjongSetData(MahjongSetData);
            CurrentRoundStatus.SetZhenting(Zhenting);
            controller.ShowInTurnPanels(Operations, BonusTurnTime);
        }