コード例 #1
0
    void WinAnimOver()
    {
        if (!PanBgShake.animation.isPlaying)
        {
            PanBgShake.animation.CrossFade("ResultShake");

            StartCoroutine(DelayShowWinFlicker(0, 0.0f));
            StartCoroutine(DelayShowWinFlicker(1, 0.1f));
            StartCoroutine(DelayShowWinFlicker(2, 0.2f));

            DcGlobalFunc.SetPEEmitState(PEType.eWinFireworks, true);
            StartCoroutine(StopWinFireworks(1.5f));
        }
    }
コード例 #2
0
    protected override void OnDlgInit()
    {
        if (bIsRelease)
        {
            cLocalization = Singlton.getInstance("NvLocalizationManager") as NvLocalizationManager;
            if (cLocalization == null)
            {
                Debug.LogError("Can Not Find Localization File!!");
            }
        }

        NvSoundController soundctr = Singlton.getInstance("NvSoundController") as NvSoundController;

        soundctr.PlayBgMusic("music_result");

        cBasicNumber.Init(ref SprBasicNumber, eNumberType.eSilver);
        cComboNumber.Init(ref SprComboNumber, eNumberType.eSilver);

        PanBgShake.animation.Stop();
        SprWin.animation.Stop();
        SprLost.animation.Stop();
        SprBlackLine.animation.Stop();
        SprWin.enabled       = false;
        SprLost.enabled      = false;
        SprBlackLine.enabled = false;

        for (int i = 0; i < SprBasicNumber.Length; i++)
        {
            SprBasicNumber[i].animation.Stop();
            SprComboNumber[i].animation.Stop();
        }

        for (int i = 0; i < cWinFlicker.Length; i++)
        {
            cWinFlicker[i].SetActiveRecursively(false);
        }
        DcGlobalFunc.SetPEEmitState(PEType.eWinFireworks, false);

        StartCoroutine(ShowScore(1));
    }