Ejemplo n.º 1
0
    public static void EndScene()
    {
        Debug.Log("EndScene / Level num :" + levelNum);
        switch (levelWhichScript[levelNum])
        {
        case 0:
            manager.GetComponent <LevelManager>().InitializeLevel(3);
            levelNum = 4;
            break;

        case 1:
            manager.GetComponent <LevelManager>().InitializeLevel(7);
            levelNum = 8;
            break;

        case 2:
            manager.GetComponent <LevelManager>().InitializeLevel(11);
            levelNum = 12;
            break;

        case 3:
            StageCurtainSwitch.SwitchCurtain(false);
            break;
        }
    }
Ejemplo n.º 2
0
 void Start()
 {
     animator = GetComponent <Animator>();
     if (isAwake)
     {
         StageCurtainSwitch.SwitchCurtain(true);
     }
 }
Ejemplo n.º 3
0
    IEnumerator WaitForAnimEnd(float sec)
    {
        yield return(new WaitForSeconds(sec));

        StageCurtainSwitch.SwitchCurtain(false);
        yield return(new WaitForSeconds(sec));

        //Debug.Log(manager);
        manager.GetComponent <GameSceneManager>().NextScene();
    }
Ejemplo n.º 4
0
    IEnumerator NextAction()
    {
        yield return(new WaitForSeconds(1f));

        StageCurtainSwitch.SwitchCurtain(false);
        //GameObject temp = GameObject.Find("DL");
        //Light tempL = temp.GetComponent<Light>();
        //while(tempL.intensity < 0.5f){
        //tempL.intensity += 0.05f;
        //yield return new WaitForSeconds(0.02f);
        //}
        yield return(new WaitForSeconds(3f));

        GameObject.Find("Manager").GetComponent <GameSceneManager>().NextScene();
    }