Ejemplo n.º 1
0
    // 결과 팝업
    public void ShowResultBetTablePopup(float[] _bet, int[] _x, int _rewardMultiple)
    {
        GameObject objUI = UITools.Instance.ShowUI(eUIType.PF_UI_BET_TABLE);
        UIBetTable popup = objUI.GetComponent <UIBetTable>();

        popup.Init(
            () =>
        {
            GlobalManager.Instance.betGold = new float[6];

            UITools.Instance.HideUI(eUIType.PF_UI_BET_TABLE);

            GlobalManager.Instance.InitRewardMultiple();

            int random = Random.Range(0, 2);        // 1/2 확률로 전면광고
            if (random == 0)
            {
                AdmobScreenAd.Instance.ShowScreenAd();
            }
        },
            _bet,
            _x,
            _rewardMultiple
            );
    }
Ejemplo n.º 2
0
    // 테이블확인 팝업
    public void ShowBetTablePopup()
    {
        GameObject objUI = UITools.Instance.ShowUI(eUIType.PF_UI_BET_TABLE);
        UIBetTable popup = objUI.GetComponent <UIBetTable>();

        popup.Init(
            () =>
        {
            UITools.Instance.HideUI(eUIType.PF_UI_BET_TABLE);
        },
            GlobalManager.Instance.betGold
            );
    }