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