ShanxiKnowledgeBase/SXElectricityInformationAcq.../Assets/Scripts/test1.cs

26 lines
593 B
C#

using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using DG.Tweening;
using MotionFramework;
using UnityEngine;
using UnityEngine.UI;
public class test1 : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
this.GetComponent<Button>().onClick.AddListener(delegate
{
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(this.gameObject.name);
});
}
private void HandleStringEvent(string message)
{
Debug.Log("Received message: " + message);
}
}