コード例 #1
0
        private void DrawVPError(XsollaUtils utils, string error)
        {
            currentActive = ActiveScreen.VP_PAYMENT;
            menuTransform.gameObject.SetActive(true);
            GameObject statusScreen = Instantiate(Resources.Load(PREFAB_SCREEN_VP_SUMMARY)) as GameObject;

            statusScreen.transform.SetParent(mainScreenContainer.transform);
            statusScreen.GetComponent <RectTransform> ().anchoredPosition    = new Vector2(0, 0);
            mainScreenContainer.GetComponentInParent <ScrollRect> ().content = statusScreen.GetComponent <RectTransform> ();
            ScreenVPController screenVpController = statusScreen.GetComponent <ScreenVPController> ();

            screenVpController.DrawScreen(utils, _summary);
            screenVpController.ShowError(error);
        }
コード例 #2
0
        private void DrawVPSummary(XsollaUtils utils, XVirtualPaymentSummary summary)
        {
            _summary      = summary;
            currentActive = ActiveScreen.VP_PAYMENT;
            GameObject statusScreen = Instantiate(Resources.Load(PREFAB_SCREEN_VP_SUMMARY)) as GameObject;

            statusScreen.transform.SetParent(mainScreenContainer.transform);
            Resizer.SetDefScale(statusScreen);
            statusScreen.GetComponent <RectTransform> ().anchoredPosition    = new Vector2(0, 0);
            mainScreenContainer.GetComponentInParent <ScrollRect> ().content = statusScreen.GetComponent <RectTransform> ();
            ScreenVPController screenVpController = statusScreen.GetComponent <ScreenVPController> ();

            screenVpController.DrawScreen(utils, summary);
        }