| | |
| | | /// <param name="myScore">789220</param> |
| | | public void SetData(string waveInfo, int myScore) |
| | | { |
| | | AudioSourceManager.Ins.StopBGAudio();//进来后停止播放BGM |
| | | |
| | | _waveInfo = waveInfo; |
| | | _myScore = myScore; |
| | | isFirstStart = true;//首次启动下载到数据执行动效 |
| | |
| | | |
| | | private void PlayDoTween() |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.End); |
| | | |
| | | Sequence agentTweenSeq = DOTween.Sequence(); |
| | | //先出现 |
| | | Image tsTiele = transform.Find("Image_Tiele").GetComponent<Image>(); |
| | |
| | | agentTweenSeq.Join(Image2.DOFade(1, imageTime)); |
| | | |
| | | Image Image3 = transform.Find("Image3").GetComponent<Image>(); |
| | | |
| | | agentTweenSeq.Append(Image3.transform.DOScale(Vector3.one, imageTime).SetEase(Ease.InOutBack));//变化图片大小 |
| | | agentTweenSeq.Join(Image3.DOFade(1, imageTime)); |
| | | agentTweenSeq.AppendCallback(() => |
| | | { |
| | | Debug.Log("开始播放声音"); |
| | | AudioSourceManager.Ins.Play(AudioEnum.FinalScore); |
| | | }); |
| | | agentTweenSeq.Join(DOTween.To(delegate (float value) |
| | | { |
| | | var temp = Math.Floor(value); |
| | | scoreText.text = temp + ""; |
| | | }, 0, _myScore, 1.0f)); |
| | | }, 0, _myScore, 1.4f)); |
| | | agentTweenSeq.AppendCallback(StartLoadLargeData); |
| | | |
| | | tsLight = transform.Find("ImageLight"); |
| | |
| | | scrollerCanvasGroup.alpha = 1; |
| | | Debug.Log("开始展示排行榜"); |
| | | } |
| | | itemCanvasGroup.alpha = 1; |
| | | float duration = 0.1f; |
| | | for (int i = 0; i < playPSItem.Count; i++) |
| | | { |
| | | playPSItem[i].PlayDoTween(duration); |
| | | yield return new WaitForSeconds(duration); |
| | | } |
| | | |
| | | if (playPSItem.Count > 0) |
| | | { |
| | | itemCanvasGroup.alpha = 1; |
| | | float duration = 0.1f; |
| | | for (int i = 0; i < playPSItem.Count; i++) |
| | | { |
| | | playPSItem[i].PlayDoTween(duration); |
| | | yield return new WaitForSeconds(duration); |
| | | } |
| | | image_HScore.SetActive(true); |
| | | goonFade = true; |
| | | ShowGoOnText(); |
| | |
| | | /// </summary> |
| | | protected void RotateLight() |
| | | { |
| | | Debug.Log("开始旋转"); |
| | | isRotate = true; |
| | | offect = 0; |
| | | } |