public void AfterTest() { _pushPoint = null; _pushableASM = null; _pushable = null; _heldItem = null; _actionStateMachine = null; }
public void BeforeTest() { _actionStateMachine = new GameObject().AddComponent <MockActionStateMachineComponent>(); _heldItem = _actionStateMachine.gameObject.AddComponent <MockHeldItemComponent>(); _pushable = new GameObject(); _pushableASM = _pushable.AddComponent <MockActionStateMachineComponent>(); _pushableASM.IsActionStateActiveResult = true; _pushPoint = new GameObject().AddComponent <OrganicPushObjectPointComponent>(); _pushPoint.PushableObject = _pushable; }