コード例 #1
0
 void OnEnable()
 {
     unitNames = new string[] {
         "Degrees",
         "Decimal Degrees",
         "Plane Coordinates"
     };
     errorMsg = "";
     _calc    = (WorldMap2D_Calculator)target;
 }
コード例 #2
0
        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;
        }