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

            _interest  = null;
            _point     = null;
            _character = null;
        }
Exemplo n.º 2
0
        public void BeforeTest()
        {
            var gameObject = new GameObject();

            gameObject.AddComponent <MockInputBinderComponent>();
            gameObject.AddComponent <MockActionStateMachineComponent>();

            _character = gameObject.AddComponent <TestCharacterComponent>();

            _point = new GameObject().AddComponent <TestPointOfInterestComponent>();
            _point.PointOfInterestEventKey = "Test Key";

            _interest = new MockEventsOfInterestService();

            new GameObject().AddComponent <TestGameServiceProvider>().TestAwake();
            GameServiceProvider.CurrentInstance.AddService <IEventsOfInterestServiceInterface>(_interest);
        }