Exemple #1
0
    // 광고보고 난후 이어하기 루틴.
    IEnumerator Continue()
    {
        while (_bContinue)
        {
            if (WaitTime())
            {
                switch (_ContinueStep)
                {
                case CONTINUE_STEP.ADDTIME:
                {
                    _Timer.AddTime(15.0f);

                    _ContinueStep = CONTINUE_STEP.START;

                    WaitTimeReset(0.5f);
                }
                break;

                case CONTINUE_STEP.START:
                {
                    _bContinue  = false;
                    _bGaemReady = true;

                    _StartStep = START_STEP.SIZE;

                    StartCoroutine(StartGame());
                }
                break;
                }
            }

            yield return(new WaitForFixedUpdate());
        }
    }
Exemple #2
0
    // 광고 보고 이어하기 요청.
    public void ADContinue()
    {
        if (_iADContinue > 0)
        {
            _iADContinue = -1;

            _ResultPop.gameObject.SetActive(false);

            _bContinue    = true;
            _ContinueStep = CONTINUE_STEP.ADDTIME;

            UIManager._BackStep = BACK_STEP.GAME;

            WaitTimeReset(1f);

            StartCoroutine(Continue());
        }
    }