private void ExtractData(GridCellRayHit gridCellRayHit) { _isValid = true; _mouseCursorPickPoint = gridCellRayHit.HitPoint; _normal = gridCellRayHit.HitNormal; _type = DecorPaintStrokeSurfaceType.GridCell; _surfaceObject = null; }
private void ExtractData(GameObjectRayHit gameObjectRayHit) { _isValid = true; _mouseCursorPickPoint = gameObjectRayHit.HitPoint; _normal = gameObjectRayHit.HitNormal; if (gameObjectRayHit.WasTerrainHit) { _type = DecorPaintStrokeSurfaceType.Terrain; } else if (gameObjectRayHit.WasSpriteHit) { _type = DecorPaintStrokeSurfaceType.Sprite; } else { _type = DecorPaintStrokeSurfaceType.Mesh; } _surfaceObject = gameObjectRayHit.HitObject; }