Пример #1
0
        public MouseCursorRayHit GetCursorRayHitForGridCell()
        {
            GridCellRayHit gridCellHit = GetGridCellRayHit();

            if (gridCellHit == null)
            {
                return(null);
            }

            return(new MouseCursorRayHit(gridCellHit, new List <GameObjectRayHit>()));
        }
Пример #2
0
 public MouseCursorRayHit(GridCellRayHit gridCellRayHit, List <GameObjectRayHit> sortedObjectRayHits)
 {
     _gridCellRayHit      = gridCellRayHit;
     _sortedObjectRayHits = sortedObjectRayHits != null ? new List <GameObjectRayHit>(sortedObjectRayHits) : new List <GameObjectRayHit>();
 }