Exemplo n.º 1
0
        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;
 }
Exemplo n.º 3
0
 public static void Show( Map map,Rect rect )
 {
     MapResizeWindow window = EditorWindow.CreateInstance<MapResizeWindow>();
     window.Init( map,rect );
 }
Exemplo n.º 4
0
 void OnEnable()
 {
     _Map = target as Map;
 }