Esempio n. 1
0
    public void RightJudgment()
    {
        if (moveSwitch && Set_sceneChange)
        {
            // セレクトボックス回転
            if (boxOrientation != BOXORIENTATION.SoundName)
            {
                DOTween
                .To(value => Y_AxisRotate(value, 1), 0, 90, 0.4f)
                .SetEase(Ease.OutBack)
                .OnStart(() => {    // アニメーション開始時によばれる
                    Y_AxisRotate_Number(1);
                    musicManagement.nomberOfMusic++;
                    if (musicManagement.nomberOfMusic == musicManagement.musicInfoList.Count)
                    {
                        musicManagement.nomberOfMusic = 0;
                    }
                    musicManagement.MusicInformationSet();

                    moveSwitch = false;
                    value_Old  = 0;
                })
                .OnComplete(() => {    // アニメーションが終了時によばれる
                    moveSwitch = true;
                });
            }
            else
            {
                // 曲選択
                sceneChangeEffect.ChangeFadeMode();
                sceneChangeEffect.OnTrigger();
                Set_sceneChange = false;
            }
        }
    }
Esempio n. 2
0
 public void JumpJudgment()
 {
     if (moveSwitch  && Set_sceneChange)
     {
         SE_Manager.SePlay(SE_Manager.SE_NAME.SceneChange);
         sceneChangeEffect.ChangeFadeMode();
         sceneChangeEffect.OnTrigger();
         Set_sceneChange = false;
     }
 }
Esempio n. 3
0
 // Update is called once per frame
 void Update()
 {
     if (playMusic)
     {
         music.Play();
         playMusic   = false;
         changeScene = true;
     }
     if (changeScene)
     {
         if (!music.isPlaying && music.time == 0)
         {
             if (onlyOne)
             {
                 sceneChangeEffect.changeSceneName = "GameScore";
                 sceneChangeEffect.ChangeFadeMode();
                 sceneChangeEffect.OnTrigger();
                 onlyOne = false;
             }
         }
     }
 }