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)); }
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)); } }
internal void OnDrawGizmos() { Gizmos.color = Color.magenta; GizmoUtils.Draw(this.WorldDockingRect); }