public IEnumerator Setup()
        {
            PlayModeTestUtilities.Setup();
            PlayModeTestUtilities.EnsureInputModule();

            inputSim = PlayModeTestUtilities.GetInputSimulationService();
            Assert.NotNull(inputSim);

            Assert.NotNull(CoreServices.InputSystem);

            GameObject lightObj = new GameObject("Light");

            lightObj.transform.rotation = Quaternion.FromToRotation(Vector3.forward, new Vector3(1, -4, 2));
            Light light = lightObj.AddComponent <Light>();

            light.type = LightType.Directional;

            var shader = StandardShaderUtility.MrtkStandardShader;

            idleMaterial       = new Material(shader);
            idleMaterial.color = Color.yellow;

            pokeMaterial       = new Material(shader);
            pokeMaterial.color = Color.green;
            yield return(null);
        }
Esempio n. 2
0
        public void Setup()
        {
            PlayModeTestUtilities.Setup();
            PlayModeTestUtilities.EnsureInputModule();

            inputSim = PlayModeTestUtilities.GetInputSimulationService();
            Assert.NotNull(inputSim);

            Assert.IsTrue(MixedRealityServiceRegistry.TryGetService <IMixedRealityInputSystem>(out inputSystem));
            Assert.NotNull(inputSystem);

            GameObject lightObj = new GameObject("Light");

            lightObj.transform.rotation = Quaternion.FromToRotation(Vector3.forward, new Vector3(1, -4, 2));
            Light light = lightObj.AddComponent <Light>();

            light.type = LightType.Directional;

            var shader = StandardShaderUtility.MrtkStandardShader;

            idleMaterial       = new Material(shader);
            idleMaterial.color = Color.yellow;

            pokeMaterial       = new Material(shader);
            pokeMaterial.color = Color.green;
        }
        public override IEnumerator Setup()
        {
            yield return(base.Setup());

            PlayModeTestUtilities.EnsureInputModule();
            yield return(null);
        }
 public IEnumerator Setup()
 {
     PlayModeTestUtilities.Setup();
     PlayModeTestUtilities.EnsureInputModule();
     yield return(null);
 }
 public void Setup()
 {
     PlayModeTestUtilities.Setup();
     PlayModeTestUtilities.EnsureInputModule();
 }