26 lines
532 B
C#
26 lines
532 B
C#
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<AnimationProcessManager>().OnCompleteEvent += CompleteEvent;
|
|
|
|
}
|
|
|
|
private void CompleteEvent(float score)
|
|
{
|
|
overGame.SetActive(true);
|
|
text.text = "总分:" + score.ToString();
|
|
}
|
|
|
|
}
|