Exemplo n.º 1
0
        public IEnumerator CoTitle()
        {
            yield return(new WaitForSeconds(1f));

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

            NMMain.LoadScene("FlowTest_Title");
            yield break;
        }
Exemplo n.º 3
0
 public override void Enter()
 {
     base.Enter();
     if (string.IsNullOrEmpty(_nextScene))
     {
         NMMain.LoadScene(_nextScene);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 6
0
 void Awake()
 {
     _instance = this;
     Init();
 }
Exemplo n.º 7
0
 public void LoadTitleMunu()
 {
     NMMain.LoadScene(typeof(Title));
 }
Exemplo n.º 8
0
 public void NextScene(int index)
 {
     Debug.Log("start loading Scene");
     NMMain.LoadScene(typeof(Zone01));
     NMUI.GetUI <AnimationHandler>("title_anim").UnRegiEvent(NextScene);
 }