Ejemplo n.º 1
0
        void Start()
        {
            if (SpecialModeData.Time < 5)
            {
                currentTime = 5;
            }
            else if (SpecialModeData.Time > 20)
            {
                currentTime = 20;
            }
            else
            {
                currentTime = SpecialModeData.Time;
            }
            SoundMgr.SoundLoadBgm("SpecialBGM", "UDCommand/SpecialBGM");
            SoundMgr.SoundLoadSe("SpecialSE", "UDCommand/SpecialSE");
            SoundMgr.SoundLoadSe("UDCGameEnd", "UDCommand/Finish");
            SoundMgr.SoundLoadSe("UDCDecide", "UDCommand/Decide");

            if (SoundMgr.isBgmPlaying("SpecialBGM") == 0)
            {
                SoundMgr.PlayBgm("SpecialBGM", 0.3f);
            }

            trans = GameObject.FindGameObjectWithTag("Transition Handler");

            instructText.SetActive(true);
            resultCanvas.SetActive(false);
            textAnim.SetActive(false);
        }
Ejemplo n.º 2
0
 void Start()
 {
     trans = GameObject.FindGameObjectWithTag("Transition Handler");
     SoundMgr.SoundLoadBgm("UDCBGM", "UDCommand/BGM");
     if (SoundMgr.isBgmPlaying("UDCBGM") != 1)
     {
         SoundMgr.PlayBgm("UDCBGM", 0.5f);
     }
 }