public void Setup()
        {
            GameObject crossHairGo = Object.Instantiate(new GameObject());

            crossHairController = crossHairGo.AddComponent <CrossHairController>();

            GameObject raycasterGo = Object.Instantiate(new GameObject());

            rayCastControllerMock = raycasterGo.AddComponent <RayCastControllerMock>();
        }
Beispiel #2
0
        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);
        }