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(); }
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>(); }