void OnEnable() { unitNames = new string[] { "Degrees", "Decimal Degrees", "Plane Coordinates" }; errorMsg = ""; _calc = (WorldMap2D_Calculator)target; }
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; unitNames = new string[] { "Degrees", "Decimal Degrees", "Plane Coordinates" }; errorMsg = ""; _calc = (WorldMap2D_Calculator)target; }