public void AfterTest()
        {
            _targetObject = null;

            _goal.UnregisterGoal();
            _goal = null;

            _attack      = null;
            _emote       = null;
            _pathfinding = null;
        }
        public void BeforeTest()
        {
            _pathfinding = new GameObject().AddComponent <MockPathfindingComponent>();
            _emote       = _pathfinding.gameObject.AddComponent <MockEmoteComponent>();

            _pathfinding.gameObject.transform.position = new Vector3(2.0f, 0.0f, 1.0f);

            _pathfinding.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();
            _attack = _pathfinding.gameObject.AddComponent <MockAttackComponent>();
            _attack.CanAttackResult = true;

            _goal = new PursuitTargetGoal(_pathfinding.gameObject, _params);
            _goal.RegisterGoal();

            _targetObject = new GameObject();
            _targetObject.transform.position = new Vector3(1.0f, 2.0f, 0.0f);
            _targetObject.AddComponent <MockActionStateMachineComponent>();
        }
 public void AfterTest()
 {
     _attack             = null;
     _actionStateMachine = null;
 }
 public void BeforeTest()
 {
     _actionStateMachine = new GameObject().AddComponent <MockActionStateMachineComponent>();
     _actionStateMachine.IsActionStateActiveResult = false;
     _attack = new GameObject().AddComponent <MockAttackComponent>();
 }