Example #1
0
        void OnGUIEnable()
        {
            using (PWGUISkin.Get())
            {
                LoadHeaderResouces();
                LoadCoreResources();
                LoadAnchorResources();
            }

            guiEnabled = true;
        }
        public static PWGUISkin Get()
        {
            if (instance == null)
            {
                instance            = new PWGUISkin();
                proceduralWorldSkin = Resources.Load <GUISkin>("PWEditorSkin");
            }

            instance.Init();

            return(instance);
        }