Exemplo n.º 1
0
 public void TakeCoin(WinBalanceInfo info, bool IsSummary)
 {
     if (SlotModel.Instance.IsJMBWin)
     {
         PlayJMBWin(info);
     }
 }
Exemplo n.º 2
0
        public void AddWin(WinBalanceInfo info)
        {
            Show();

            content.DOFade(1f, 0.2f).Play();
            SetWin(0);
            SetWin(info.win, info.duration);
        }
Exemplo n.º 3
0
        public void TakeCoin(WinBalanceInfo info, bool IsSummary)
        {
            if (IsSummary)
            {
                _info.SetWin(0);
            }

            _info.AddWin(info);
            _winAnimator.AddWin(info);
        }
Exemplo n.º 4
0
        IEnumerator TakeCoin_Enter()
        {
            _takeCoinStartTime  = Time.time;
            _lastWinBalanceInfo = GetWinBalanceInfo();

            Debug.Log(_lastWinBalanceInfo.ToString());

            _ui.TakeCoin(_lastWinBalanceInfo, _isSummary);
            _topboard.TakeCoin(_lastWinBalanceInfo, _isSummary);

            yield return(new WaitForSeconds(_lastWinBalanceInfo.duration));

            _isSummary = false;

            SetState(MachineState.CheckNextSpin);
        }
Exemplo n.º 5
0
        void PlayJMBWin(WinBalanceInfo info)
        {
            HideWinTable();

            switch (info.winType)
            {
            case PayoutWinType.BIGWIN:
                bigwin.enabled = true;
                break;

            case PayoutWinType.MEGAWIN:
                megawin.enabled = true;
                break;

            case PayoutWinType.JACPOT:
                jackpotwin.enabled = true;
                break;
            }
        }
Exemplo n.º 6
0
 public void AddWin(WinBalanceInfo info)
 {
     SetWin(_win + info.win, info.duration);
 }