Пример #1
0
        public void AfterTest()
        {
            _sprite = null;

            _gadget = null;

            _text  = null;
            _image = null;
        }
Пример #2
0
        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);
        }