public void TestStepActive() { float expected = 1; float actual = step.Activate(1, 0); Assert.AreEqual(expected, actual); }
// must have parent! public void GotoNextStep(Player player) { var step = transform.parent.GetComponent <Step>(); if (step != null) { step.Deactivate(player); } else { transform.parent.gameObject.SetActive(false); } NextStep.gameObject.SetActive(true); NextStep.Activate(player); }