IEnumerator Wait_Before_Load_Stats_Button()
    {
        audio_manager.Play("Button");
        scene_transition.SetBool("end_transition", true);
        yield return(new WaitForSeconds(1f));

        scene_loader.Load_Scene_By_Index(18);
    }
Exemplo n.º 2
0
    IEnumerator Start_Scene_Transitioning_2()
    {
        if (Scene_Loader.scene_index == 15)
        {
            Carry_Current_Score.current_score += 50;
        }
        else if (Scene_Loader.scene_index == 16)
        {
            Carry_Current_Score.current_score += 100;
        }
        else if (Scene_Loader.scene_index == 17)
        {
            Carry_Current_Score.current_score += 200;
        }


        scene_transition.SetBool("end_transition", true);

        yield return(new WaitForSeconds(1f));


        // each level will direct to 8th level.
        scene_loader.Load_Scene_By_Index(9);
    }