public void BeforeTest() { _rigidbody = new GameObject().AddComponent <Rigidbody2D>(); _pushable = _rigidbody.gameObject.AddComponent <TestPushableObjectComponent>(); _pushable.PushModifier = 1.5f; _pushable.TestStart(); }
public void AfterTest() { _pushable = null; _rigidbody = null; }