Ejemplo n.º 1
0
        public void AfterTest()
        {
            GameServiceProvider.ClearGameServiceProvider();

            _noise   = null;
            _emitter = null;
        }
Ejemplo n.º 2
0
        public void BeforeTest()
        {
            _emitter = new GameObject().AddComponent <NoiseEmitterComponent>();

            _emitter.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();
            _emitter.gameObject.transform.position = new Vector3(12.0f, 20.0f, 30.0f);

            _noise = new MockNoiseService();
            new GameObject().AddComponent <TestGameServiceProvider>().TestAwake();
            GameServiceProvider.CurrentInstance.AddService <INoiseServiceInterface>(_noise);
        }