public void AfterTest() { _species = null; _otherPushable = null; _pushable = null; _pushTrigger = null; }
public void BeforeTest() { _pushTrigger = new GameObject().AddComponent <TestPushObjectTriggerComponent>(); _pushTrigger.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake(); _pushable = new GameObject().AddComponent <MockPushableObjectComponent>(); _otherPushable = new GameObject().AddComponent <MockPushableObjectComponent>(); _species = new GameObject().AddComponent <MockSpeciesComponent>(); }
public void AfterTest() { _goal = null; _otherSpecies = null; _species = null; _ownerSpecies = null; _pathfinding = null; _wildlifeService = null; _params = null; }
public void BeforeTest() { _totem = new GameObject().AddComponent <TestTotemComponent>(); _actionStateMachineComponent = new GameObject().AddComponent <MockActionStateMachineComponent>(); _species = _actionStateMachineComponent.gameObject.AddComponent <MockSpeciesComponent>(); var transformObject = new GameObject(); _transformSpecies = transformObject.AddComponent <MockSpeciesComponent>(); _totem.TransformTypePrefab = transformObject; _totem.TestStart(); }
public void BeforeTest() { _params = new FollowTargetGoalParams { ValidTargetDesirability = 1.0f, LoseFollowRadiusSquared = 2000.0f, FollowRadius = 10.0f }; _wildlifeService = new MockWildlifeService(); var owner = new GameObject(); _pathfinding = owner.AddComponent <MockPathfindingComponent>(); _ownerSpecies = owner.AddComponent <MockSpeciesComponent>(); _species = new GameObject().AddComponent <MockSpeciesComponent>(); _otherSpecies = new GameObject().AddComponent <MockSpeciesComponent>(); _goal = new FollowTargetGoal(owner, _params, _wildlifeService); }
public void AfterTest() { _species = null; }
public void BeforeTest() { _species = new GameObject().AddComponent <MockSpeciesComponent>(); }