Esempio n. 1
0
        //开始比赛
        public async ETTask MatchInitCountDown()
        {
            //倒计时
            uiData.go_m_Countdown.SetActive(true);
            //动画4s
            for (int i = 0; i < 4; i++)
            {
                SoundTools.PlaySoundEffect("Countdown");
                await ModelComTools.TimerComponent.WaitAsync(1000);
            }
            uiData.go_m_Countdown.SetActive(false);
            //清理备战倒计时并显示进度条
            uIMatchEnsureAndSpeedLogic.ClearCountDown();
            //显示天气,场地
            uIMatchEnsureAndSpeedLogic.ShowAnimMatchWeatcherAndFieldAsync();
            uIMatchEnsureAndSpeedLogic.SetHeadSwitch(true); //显示设置马匹头上信息的按钮
            //显示技能信息俩天框
            uIMatchChatLogic.ShowMatchSkillInfo();
            //显示赛事列表,因为需要动态排名
            uIMatchRankLogic.ShowMatchList();
            //显示远近的按钮
            opSkillComponent.SetBtnViewShow(true);
            //显示底部动态排名界面
            uiData.go_m_DynamicRankingNode.SetActive(true);


            uiData.go_m_MatchGroundNode.SetActive(true);
            //显示技能按钮
            UpdateOpSkillInfo();
            //回放界面
            ShowPlayerBackRoot();
            isBeginCountTime = true;
            uIMatchHorseHeadLogic.InitAllHorseHead();
            uiData.go_AllHeadInSceneRoot.SetActive(true);
        }
Esempio n. 2
0
 public void setCameraState(CameraPathState state, int start, int now, bool active)
 {
     if (cameraParamSet == null)
     {
     }
     if (active)
     {
         //Transform t = funcs.GetCameraPathParam(state, start, now);
         Transform t = getCameraPara(state, start, now);
         if (state == CameraPathState.State_ExitCurse)
         {
             SoundTools.PlaySoundEffect("chuwan2");   //出弯
             SetAndOpenExitCurseCamera(t);
         }
         else if (state == CameraPathState.State_ChongCi)
         {
             SoundTools.PlaySoundEffect("chongci2");   //冲刺
             SetAndOpenChongCiCamera(t);
         }
         else if (state == CameraPathState.State_GotWinner)
         {
             SoundTools.PlaySoundEffect("qingzhu2");   //庆祝
             SetAndOpenWinnerCamera(t);
         }
     }
     else
     {
         if (state == CameraPathState.State_ExitCurse)
         {
             CloseExitCurseCamera();
         }
         else if (state == CameraPathState.State_ChongCi)
         {
             CloseChongCiCamrea();
         }
         else if (state == CameraPathState.State_GotWinner)
         {
             CloseWinnerCamera();
         }
     }
 }
Esempio n. 3
0
        private void OnClickAngle()
        {
            SoundTools.PlaySoundEffect("Switch");
            //按顺序切
            switch (enumCameraStandRand)
            {
            case EnumCameraStand.PositiveSide:
                enumCameraStandRand = EnumCameraStand.RandStand1;
                break;

            case EnumCameraStand.RandStand1:
                enumCameraStandRand = EnumCameraStand.RandStand2;
                break;

            case EnumCameraStand.RandStand2:
                enumCameraStandRand = EnumCameraStand.PositiveSide;
                break;
            }
            string args = (int)enumCameraStandRand + string.Empty;

            Game.EventSystem.Run(ETModel.EventIdType.CameraChange, args);
        }