예제 #1
0
    IEnumerator LaunchProcess()
    {
        while (_bDone == false)
        {
            switch (_Step)
            {
            case LAUNCH_STEP.LOGO:
            {
                TweenAlpha.Begin(_Logo, 1f, 0);
                TweenAlpha.Begin(_Title, 1f, 1);

                yield return(new WaitForSeconds(2f));

                _Step = LAUNCH_STEP.TITLE;
            }
            break;

            case LAUNCH_STEP.TITLE:
            {
                LeanTween.moveLocalY(_Title, 510.0F, 1.5f).setEase(LeanTweenType.easeOutCubic);
                LeanTween.moveLocalY(_CubeParent, 0.0f, 3.0f).setEase(LeanTweenType.easeOutCubic);

                yield return(new WaitForSeconds(3.5f));

                _Step = LAUNCH_STEP.CUBE;
            }
            break;

            case LAUNCH_STEP.CUBE:
            {
                SetCubesMove();

                yield return(new WaitForSeconds(0.5f));

                _Step = LAUNCH_STEP.BUTTON;
            }
            break;

            case LAUNCH_STEP.BUTTON:
            {
                TweenAlpha.Begin(_btnStart, 1f, 1);
                TweenAlpha.Begin(_btnHelp, 1f, 1);
                TweenAlpha.Begin(_btnSound, 1f, 1);
                TweenAlpha.Begin(_btnRank, 1f, 1);

#if !UNITY_EDITOR && !NO_AD
                GoogleAds._Instance.ShowBanner();
#endif
                UIManager._BackStep = Define.BACK_STEP.MAIN;

                _Step  = LAUNCH_STEP.NONE;
                _bDone = true;
            }
            break;
            }

            yield return(new WaitForEndOfFrame());
        }
    }
예제 #2
0
    public void MainLaunch()
    {
        _Step = LAUNCH_STEP.LOGO;

        StartCoroutine(LaunchProcess());
    }