public void BeforeTest() { _text = new GameObject().AddComponent <Text>(); _image = new GameObject().AddComponent <Image>(); _textNotification = _image.gameObject.AddComponent <TestTextNotificationHUDComponent>(); _text.transform.parent = _textNotification.transform; }
public void AfterTest() { _textNotification = null; _text = null; }