コード例 #1
0
    public void InitCharMgr(DcCharMgr cCM)
    {
        cCharMgr = cCM;
        if (cCharMgr)
        {
            cCharMgr.ForceMainCharIdleForDancing();
            cCharMgr.CosterIdleForDancing();
        }

        cCamObj = GameObject.Find("Camera");
        GameObject cCamParentObj = GameObject.Find("CameraParent");

        cCamAnim = cCamParentObj.animation;
    }
コード例 #2
0
    IEnumerator EndDancing(float timevalue)
    {
        yield return(new WaitForSeconds(timevalue));

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

        soundctr.StopBgmImmediately();

        bIsSucceedDancing = false;
        nSuccessionSD     = 0;
        if (cCharMgr)
        {
            cCharMgr.CosterIdleForDancing();
        }

        if (IsWin())
        {
            if (cCharMgr)
            {
                cCharMgr.MainCharCheer();
            }

            DcGlobalFunc.SetPEEmitState(PEType.eFireworks, true);

            soundctr.PlaySe("music_win");
            StartCoroutine(ChangeFireworksPosition(1.5f));
            StartCoroutine(ChangeFireworksPosition(3));
            StartCoroutine(ChangeFireworksPosition(4.5f));
        }
        else
        {
            if (cCharMgr)
            {
                cCharMgr.ForceMainCharIdleForDancing();
            }
            soundctr.PlaySe("music_lost");
        }

        cGesture.SetGestureEnable(false);

        nComboNum4Result += nComboNum;
        nComboNum         = 0;
        ShowCombo();

        StartCoroutine(ShowResult(5));
    }
コード例 #3
0
    public void InitCharMgr(DcCharMgr cCM)
    {
        cCharMgr = cCM;
        if (cCharMgr)
        {
            cCharMgr.ForceMainCharIdleForDancing();
            cCharMgr.CosterIdleForDancing();
        }

        cCamObj = GameObject.Find("Camera");
        GameObject cCamParentObj = GameObject.Find("CameraParent");
        cCamAnim = cCamParentObj.animation;
    }