void OnEnable() { _decorator = (WorldMapDecorator)target; groupNames = new string[WorldMapDecorator.NUM_GROUPS]; ReloadGroupNames(); ReloadCountryNames(); }
void OnEnable() { Color backColor = EditorGUIUtility.isProSkin ? new Color(0.18f, 0.18f, 0.18f) : new Color(0.7f, 0.7f, 0.7f); _blackTexture = MakeTex(4, 4, backColor); _blackTexture.hideFlags = HideFlags.DontSave; blackStyle = new GUIStyle(); blackStyle.normal.background = _blackTexture; _decorator = (WorldMapDecorator)target; // if (!Application.isPlaying && _decorator.decoratorLayer == null) // _decorator.Init (); groupNames = new string[WorldMapDecorator.NUM_GROUPS]; ReloadGroupNames(); ReloadCountryNames(); }