Esempio n. 1
0
    public static void DrawGrids()
    {
        Debug.Log("----? draw grids??");
        // Draw the resource grid
        //List<Vector2> grid = UI.DrawGrid(window2, 50f, 50f, 4f, 4f, 4f, 8);
        Rect rect = window2;//new Rect(window2.x + 3, window2.height + 3, window2.width - 6, window2.height - 6);

        rect.x      += 6;
        rect.y      += 6;
        rect.width  -= 8;
        rect.height -= 8;

        GUI.Box(rect, "", MyGUIBehavior.Instance.skin.button);

        //List<Rect> rectGrids = UIExtension.DrawAutoGrids(rect, 50f, 30f);
        List <Rect> rectGrids = UIExtension.DrawAutoGrids(rect, 60f, 60f);
    }