Beispiel #1
0
        public IEnumerator CoTitle()
        {
            yield return(new WaitForSeconds(1f));

            NMMain.LoadScene("FlowTest_Level01");
            yield break;
        }
Beispiel #2
0
        public IEnumerator CoIntro()
        {
            yield return(new WaitForSeconds(1f));

            NMMain.LoadScene("FlowTest_Title");
            yield break;
        }
Beispiel #3
0
 public override void Enter()
 {
     base.Enter();
     if (string.IsNullOrEmpty(_nextScene))
     {
         NMMain.LoadScene(_nextScene);
     }
 }
Beispiel #4
0
        public void ActiveMunu()
        {
            NMMain.LoadScene(typeof(Zone01));
            return;

            menu.SetActive(menu.activeSelf == false);
            //continueBtn.gameObject.SetActive(menu.activeSelf);
            //golobbyBtn.gameObject.SetActive(menu.activeSelf);
        }
Beispiel #5
0
        IEnumerator CoIntro()
        {
            SoundManager sounds = SoundManager.instance;

            yield return(NMUI.GetUI <Image>("image").DOFade(1f, 2f).WaitForCompletion(false));

            yield return(new WaitForSeconds(1f));

            yield return(NMUI.GetUI <Image>("image").DOFade(0f, 2f).WaitForCompletion(false));

            yield return(NMUI.Fade(1, 0.3f));

            sounds.PlaySound(sounds.introBGM);
            sounds.FadeInSound(sounds.introBGM);

            NMMain.LoadScene(typeof(Title));
            yield break;
        }
Beispiel #6
0
 void Awake()
 {
     _instance = this;
     Init();
 }
Beispiel #7
0
 public void LoadTitleMunu()
 {
     NMMain.LoadScene(typeof(Title));
 }
Beispiel #8
0
 public void NextScene(int index)
 {
     Debug.Log("start loading Scene");
     NMMain.LoadScene(typeof(Zone01));
     NMUI.GetUI <AnimationHandler>("title_anim").UnRegiEvent(NextScene);
 }