public void BeforeTest() { _actionStateMachineComponent = new GameObject().AddComponent <MockActionStateMachineComponent>(); _dispatcherComponent = _actionStateMachineComponent.gameObject .AddComponent <TestUnityMessageEventDispatcherComponent>(); _dispatcherComponent.TestAwake(); _healthComponent = _actionStateMachineComponent.gameObject.AddComponent <TestHealthComponent>(); }
public void AfterTest() { _dispatcherComponent = null; _actionStateMachineComponent = null; _healthComponent = null; }