Exemple #1
0
        [HideInInspector] public Text[] textsToClear; //the script also has to clear the tooltips because disabled objects don't trigger PointerExit.

        void Start()
        {
            if (!unloadAutocompleteLibraryWhileClosed)   //console isn't enabled to do this for itself
            {
                unloadAutocompleteLibraryWhileClosed = true;
                console.OnEnable();
                unloadAutocompleteLibraryWhileClosed = false;
            }
            if (dontDestroyOnLoad)
            {
                DontDestroyOnLoad(gameObject);
            }
        }