Esempio n. 1
0
        /// <summary>
        /// 播放奖励阶段音乐
        /// </summary>
        /// <param name="type"></param>
        public void  PlayeGameStateMusic(LSRewardType type)
        {
            var musicIndex = (int)type;

            switch (type)
            {
            case LSRewardType.BIG_THREE:   //LSConstant.BackgroundMusic_BigThree;
            case LSRewardType.BIG_FOUR:    //LSConstant.BackgroundMusic_BigFour;
                PlayVoice(LSConstant.ThreeOrFourWaring);
                break;

            case LSRewardType.NORMAL:    //LSConstant.BackgroundMusci_Normal;
            case LSRewardType.LIGHTING:  //LSConstant.BackgroundMusic_SendLamp;
            case LSRewardType.SENDLAMP:  //LSConstant.BackgroundMusic_SendLamp;
            case LSRewardType.HANDSEL:   //LSConstant.BackgroundMusic_Handsel;
                break;

            default:
                //LSConstant.BackgroundMusic_WaitBet;
                musicIndex = 6;
                YxDebug.LogError("Not exist such type music");
                break;
            }
            PlayeGameStateMusic(musicIndex);
        }
Esempio n. 2
0
        /// <summary>
        /// 是否需要上台展示,普通模式,彩金模式,闪电需要上台展示,其他(大四喜,大三元,送灯)不需要上台展示
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public bool NeedSignAnimal(LSRewardType type)
        {
            switch (type)
            {
            case LSRewardType.NORMAL:
            case LSRewardType.HANDSEL:
            case LSRewardType.SENDLAMP:
                return(true);

            default:
                return(false);
            }
        }