24 lines
502 B
C#
24 lines
502 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using DefaultNamespace.ProcessMode;
|
|
using MotionFramework;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class MessageManager : MonoBehaviour
|
|
{
|
|
public TMP_Text text;
|
|
void Start()
|
|
{
|
|
|
|
MotionEngine.GetModule<AnimationProcessManager>().OnSendMessagePrompt += SendMessagePrompt;
|
|
}
|
|
|
|
private void SendMessagePrompt(string message)
|
|
{
|
|
text.text = message;
|
|
}
|
|
}
|