using System.Collections; using System.Collections.Generic; using DefaultNamespace.ProcessMode; using MotionFramework; using TMPro; using UnityEngine; public class CompleteOverComponent : MonoBehaviour { public GameObject overGame; public TMP_Text text; void Start() { MotionEngine.GetModule().OnCompleteEvent += CompleteEvent; } private void CompleteEvent(float score) { overGame.SetActive(true); text.text = "总分:" + score.ToString(); } }