public void Setup() { GameObject crossHairGo = Object.Instantiate(new GameObject()); crossHairController = crossHairGo.AddComponent <CrossHairController>(); GameObject raycasterGo = Object.Instantiate(new GameObject()); rayCastControllerMock = raycasterGo.AddComponent <RayCastControllerMock>(); }
public void Setup() { GameObject pointAndLineGo = Object.Instantiate(new GameObject()); GameObject raycasterGo = Object.Instantiate(new GameObject()); pointAndLinePlacementController = pointAndLineGo.AddComponent <PointAndLinePlacementController>(); rayCastControllerMock = raycasterGo.AddComponent <RayCastControllerMock>(); Assert.NotNull(pointAndLinePlacementController); }