public void LevelManagerTestsSetUp() { testObj = new GameObject(); testObj_lm = testObj.AddComponent <LevelManagerInheritor>() as LevelManagerInheritor; testObj_lm.postprocess = new GameObject().AddComponent <PostProcessVolume>(); testObj_lm.instructionParent = new GameObject(); testObj_lm.instructionParent.AddComponent <RectTransform>(); testObj_lm.instructions = new GameObject[] { new GameObject() }; testObj_lm.countdownText = new GameObject(); testObj_lm.countdownText.AddComponent <RectTransform>(); testObj_lm.countdownText.AddComponent <TextMeshProUGUI>(); testObj_lm.outroText = new GameObject(); testObj_lm.outroText.AddComponent <RectTransform>(); testObj_lm.textBG = new GameObject(); testObj_lm.textBG.AddComponent <RectTransform>(); testObj_lm.textBG_Main = new GameObject().AddComponent <RectTransform>(); testObj_lm.textBG_Edge = new GameObject().AddComponent <RectTransform>(); testObj_lm.textBG_LArm = new GameObject().AddComponent <RectTransform>(); testObj_lm.textBG_RArm = new GameObject().AddComponent <RectTransform>(); testObj_lm.textBG_Main.SetParent(testObj_lm.textBG.GetComponent <RectTransform>()); testObj_lm.textBG_Edge.SetParent(testObj_lm.textBG.GetComponent <RectTransform>()); testObj_lm.textBG_LArm.SetParent(testObj_lm.textBG.GetComponent <RectTransform>()); testObj_lm.textBG_RArm.SetParent(testObj_lm.textBG.GetComponent <RectTransform>()); testObj_lm.sound = testObj.AddComponent <AudioSource>(); }
public void LevelManagerTestsTearDown() { testObj_lm = null; testObj = null; }