public void AfterTest() { _goal = null; _pathfinding = null; _owner = null; }
public void BeforeTest() { _startPosition = new Vector3(12.0f, 100.0f, 120.0f); _owner = new GameObject(); _owner.transform.position = _startPosition; _pathfinding = _owner.AddComponent <MockPathfindingComponent>(); _params = new RemainInRadiusGoalParams { LeftRadiusDesirability = 0.5f, MaxRadius = 10.0f }; _goal = new RemainInRadiusGoal(_owner, _params); }