public void Setup() { testObject = testHelper.InstantiateScript<PlayerMovement>(); inputHelper = testHelper.InstantiateScript<MockInputHelper>(); testObject.inputHelper = inputHelper; testObject.gameObject.AddComponent<Rigidbody2D>(); testObject.gameObject.AddComponent<Animator> (); testHelper.Start(testObject); }
public void Setup() { testObject = testHelper.InstantiateScript<PlayerMovement>(); inputHelper = testHelper.InstantiateScript<MockInputHelper>(); testObject.inputHelper = inputHelper; }