public virtual void OnEnable() { if (Application.isEditor) { themeList = Resources.Load <ThemeList>("FlexibleUI/ThemeList"); } else { themeList = FlexibleUIManager.themeList; } FlexibleUIManager.UIChanged += OnUIChanged; }
public static void Init(ThemeList list, int themeIndex = 0) { if (!isInitialized) { isInitialized = true; themeList = list; ChangeUI(themeIndex); } else { Debug.LogWarning("FlexibleUIManager is already intialized"); } }