public void AfterTest() { GameServiceProvider.ClearGameServiceProvider(); _interest = null; _point = null; _character = null; }
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); }