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; }
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)); }