public void AfterTest() { _sprite = null; _gadget = null; _text = null; _image = null; }
public void BeforeTest() { _image = new GameObject().AddComponent <Image>(); _text = new GameObject().AddComponent <Text>(); _gadget = _image.gameObject.AddComponent <TestGadgetHUDComponent>(); _gadget.GadgetCount = _text; _gadget.GadgetImage = _image; _sprite = Resources.Load <Sprite>(SpritePath); }