Пример #1
0
        public virtual void OnEnable()
        {
            if (Application.isEditor)
            {
                themeList = Resources.Load <ThemeList>("FlexibleUI/ThemeList");
            }
            else
            {
                themeList = FlexibleUIManager.themeList;
            }

            FlexibleUIManager.UIChanged += OnUIChanged;
        }
Пример #2
0
 public static void Init(ThemeList list, int themeIndex = 0)
 {
     if (!isInitialized)
     {
         isInitialized = true;
         themeList     = list;
         ChangeUI(themeIndex);
     }
     else
     {
         Debug.LogWarning("FlexibleUIManager is already intialized");
     }
 }