Exemplo n.º 1
0
 public void Go_to_options_screen()
 {
     my_game_master.Gui_sfx(my_game_master.tap_sfx);
     home_screen.gameObject.SetActive(false);
     my_options.Start_me();
     Mark_current_screen(options_screen);
     Mark_this_button(options_screen_target_button);
 }
Exemplo n.º 2
0
    public void Open_options_menu(bool from_pause_screen)
    {
        if (my_game_master)
        {
            if (from_pause_screen)
            {
                pause_screen.gameObject.SetActive(false);
            }
            else
            {
                in_pause         = true;
                allow_game_input = false;
                play_screen.gameObject.SetActive(false);
                Time.timeScale = 0;
            }

            options_screen.gameObject.SetActive(true);
            my_options.Start_me();
            Mark_this_button(options_screen_target_button);
        }
        else
        {
            if (show_debug_warnings)
            {
                Debug.LogWarning("In order to allow saves and play music and menu sfx, you must star from Home scene and open this stage using the in game menu");
            }
        }
    }