void Init( Map map,Rect rect )
        {
            _Map = map;
            _Width = map.width;
            _Height = map.height;

            Vector2 pos = GUIUtility.GUIToScreenPoint( new Vector2(rect.x, rect.y) );
            rect.x = pos.x;
            rect.y = pos.y;

            this.ShowAsDropDown( rect,new Vector2( 200.0f,220.0f ) );
        }
 public MapLayerProperty( Map map,int colorCode )
 {
     _Map = map;
     _ColorCode = colorCode;
 }
 public static void Show( Map map,Rect rect )
 {
     MapResizeWindow window = EditorWindow.CreateInstance<MapResizeWindow>();
     window.Init( map,rect );
 }
Example #4
0
 void OnEnable()
 {
     _Map = target as Map;
 }