public MouseCursorRayHit GetCursorRayHitForGridCell() { GridCellRayHit gridCellHit = GetGridCellRayHit(); if (gridCellHit == null) { return(null); } return(new MouseCursorRayHit(gridCellHit, new List <GameObjectRayHit>())); }
public MouseCursorRayHit(GridCellRayHit gridCellRayHit, List <GameObjectRayHit> sortedObjectRayHits) { _gridCellRayHit = gridCellRayHit; _sortedObjectRayHits = sortedObjectRayHits != null ? new List <GameObjectRayHit>(sortedObjectRayHits) : new List <GameObjectRayHit>(); }