Exemplo n.º 1
0
        public void Setup()
        {
            _controller = GlobalGameObject.AddComponent <MultiProductShopController>();
            _shop       = Substitute.For <IMultiProductShop>();

            _controller.Shop = _shop;

            _controller.Credentials = new ShopCredentials(Utils.TestShopDomain, Utils.TestAccessToken);
        }
        public void Show()
        {
            _controller   = _controller ?? GetComponent <MultiProductShopController>();
            _productCache = _productCache ?? new ProductCache();

            if (_waitForHiddenAndDeactivateRoutine != null)
            {
                StopCoroutine(_waitForHiddenAndDeactivateRoutine);
            }

            gameObject.SetActive(true);
            Animator.Play("Show", 0);
            _controller.Load();
        }
Exemplo n.º 3
0
 private void Awake()
 {
     _controller   = GetComponent <MultiProductShopController>();
     _productCache = new ProductCache();
 }
 public void Setup()
 {
     _controller  = GlobalGameObject.AddComponent <MultiProductShopController>();
     _editor      = Editor.CreateEditor(_controller) as MultiProductShopControllerEditor;
     _editor.View = Substitute.For <IMultiProductShopControllerEditorView>();
 }