コード例 #1
0
        public void BeforeTest()
        {
            _actionStateMachineComponent = new GameObject().AddComponent <MockActionStateMachineComponent>();

            _dispatcherComponent = _actionStateMachineComponent.gameObject
                                   .AddComponent <TestUnityMessageEventDispatcherComponent>();
            _dispatcherComponent.TestAwake();

            _healthComponent = _actionStateMachineComponent.gameObject.AddComponent <TestHealthComponent>();
        }
コード例 #2
0
 public void AfterTest()
 {
     _dispatcherComponent         = null;
     _actionStateMachineComponent = null;
     _healthComponent             = null;
 }