Example #1
0
 internal void OnDrawGizmos()
 {
     Gizmos.color = Color.yellow;
     GizmoUtils.Draw(new Rect(Tile.MapXMin + Left * Tile.SizeInSceneUnits,
                              Tile.MapYMin + Bottom * Tile.SizeInSceneUnits,
                              Width * Tile.SizeInSceneUnits,
                              Height * Tile.SizeInSceneUnits));
 }
Example #2
0
    internal void OnDrawGizmosSelected()
    {
        TileMap.UpdateMapVariables();
        Gizmos.color = Color.yellow;
        GizmoUtils.Draw(new Rect(Tile.MapXMin + Left * Tile.SizeInSceneUnits,
                                 Tile.MapYMin + Bottom * Tile.SizeInSceneUnits,
                                 Width * Tile.SizeInSceneUnits,
                                 Height * Tile.SizeInSceneUnits));

        foreach (var portal in Portals)
        {
            GizmoUtils.Draw(new Rect(Tile.MapXMin + portal.Left * Tile.SizeInSceneUnits,
                                     Tile.MapYMin + portal.Bottom * Tile.SizeInSceneUnits,
                                     portal.Width * Tile.SizeInSceneUnits,
                                     portal.Height * Tile.SizeInSceneUnits));
        }
    }
Example #3
0
 internal void OnDrawGizmos()
 {
     Gizmos.color = Color.magenta;
     GizmoUtils.Draw(this.WorldDockingRect);
 }