Example #1
0
        private void StartNextTest()
        {
            MOneTestConfiguration nextTestConfiguration = GetNextTest();

            _currentScenarioDirector = StartTest(nextTestConfiguration);
            Debug.Log($"M512 Starting test {(_fullTestsCount)-_configurations.Count}/{_fullTestsCount} : {nextTestConfiguration.TestName}");
        }
Example #2
0
        private MOneScenarioDirectorGO StartTest(MOneTestConfiguration configuration)
        {
            var cameraObject = GameObject.Instantiate(CameraPrefab);

            cameraObject.transform.position = InitialCameraPositionMarker.transform.position;
            var scenarioDirector = cameraObject.GetComponent <MOneScenarioDirectorGO>();

            scenarioDirector.HatchedObject = HatchedObject;
            scenarioDirector.Configuration = configuration;
            cameraObject.GetComponent <CameraMouseRotatorByAnglesOC>().Target = HatchedObject.transform;

            var testingRunner = cameraObject.GetComponent <MTestingRunnerGO>();

            testingRunner.CameraDirector   = CameraDirector;
            testingRunner.LightDirector    = LightDirector;
            testingRunner.PointLightObject = PointLight;
            return(scenarioDirector);
        }
Example #3
0
 public void ConsumeConfiguration(MOneTestConfiguration configuration)
 {
     GetComponent <MasterCachedShaderBufferInjectOC>().BaseName = configuration.MeshToUse.MeshBufferName;
 }