예제 #1
0
    public override void ShowAuxInfo()
    {
        Handles.BeginGUI();
        var re = SceneView.lastActiveSceneView.position;

        GUILayout.BeginArea(new Rect(0, re.height - 100, re.width, 100), EditorStyles.objectFieldThumb);//EditorStyles.toolbarButton);
        {
            var          objs   = ResourceCenter.Instance.prefabObjects;
            var          thumbs = ResourceCenter.Instance.thumbnails;
            GUIContent[] gc     = new GUIContent[objs.Length];
            for (int i = 0; i < gc.Length; ++i)
            {
                gc[i] = new GUIContent(thumbs[i]);
            }
            selectedObjectIndex = GUILayout.SelectionGrid(
                selectedObjectIndex,
                gc,
                gc.Length,
                EditorStyles.objectFieldThumb,//EditorStyles.toolbarButton,
                GUILayout.Width(200),
                GUILayout.Height(100));
        }
        GUILayout.EndArea();
        Handles.EndGUI();
        Vector3 mapsize = MapModifier.Instance.MapSize;// / (cm.paintedgridlength / cm.unitlength);

        MapAux.DrawMapCellsDotted(cm.center, mapsize, cm.unitlength, Color.yellow);
        MapAux.DrawMapCells(cm.center, mapsize / (cm.paintedgridlength / cm.unitlength), cm.paintedgridlength, Color.blue);
        MapModifier.Instance.ShowGameObjectIndexInfo();
    }
예제 #2
0
    public override void ShowAuxInfo()
    {
        Vector3 mapsize = MapModifier.Instance.MapSize;

        MapAux.DrawMapCellsDotted(cm.center, mapsize, cm.unitlength, Color.yellow);
        MapAux.DrawMapCells(cm.center, mapsize / (cm.paintedgridlength / cm.unitlength), cm.paintedgridlength, Color.blue);
    }
예제 #3
0
    // int cellIndex;
    //  int bigcellIndex;
    public override void ShowAuxInfo()
    {
        Vector3 mapsize = MapModifier.Instance.MapSize;

        MapAux.DrawMapCellsDotted(cm.center, mapsize, cm.unitlength, Color.yellow);
        MapAux.DrawMapCells(cm.center, mapsize / (cm.paintedgridlength / cm.unitlength), cm.paintedgridlength, Color.blue);
        foreach (var e in cm.unreachable)
        {
            Vector3 center = MapModifier.Instance.TranselateIndexToPostion(e);
            MapAux.DrawMapUnreachableArea(center, cm.unitlength, Color.red);
        }
    }