Beispiel #1
0
        void Start()
        {
            // Hide UI initially?
            Show_UI(!hide_UI_at_start);

            if (load_user_preferences)
            {
                // Load text scrolling speed
                Text_Scroll_Speed_Change(PlayerPrefs.GetFloat("TextScrollSpeed", 0.02f));

                // Load the size of the dialogue text
                Text_Size_Change(PlayerPrefs.GetInt("TextSize", 25));

                // Set the best fit auto size
                Text_Autosize_Change(System.Convert.ToBoolean(PlayerPrefs.GetInt("TextAutosize", 1)));

                // Enable and load multiple fonts
                if (UIManager.ui_manager.font_drop_down != null)
                {
                    UIManager.ui_manager.font_drop_down.EnableFontMenu();
                }
            }

            // Start the first conversation
            StartCoroutine(Start_Scene());

            StatsManager.Load_All_Items();

            if (!can_save && UIManager.ui_manager.save_button != null)
            {
                UIManager.ui_manager.save_button.interactable = false;
            }
        }