public void AfterTest() { _target = null; _weapon = null; _holdable = null; _attack.TestDestroy(); _attack = null; _heldItem = null; }
public void BeforeTest() { _heldItem = new GameObject().AddComponent <MockHeldItemComponent>(); _attack = _heldItem.gameObject.AddComponent <TestAttackComponent>(); _attack.TestStart(); _holdable = new GameObject().AddComponent <MockHoldableComponent>(); _holdable.GetHoldableObjectResult = _holdable.gameObject; _weapon = _holdable.gameObject.AddComponent <MockWeaponComponent>(); _target = new GameObject(); }