经过测试只要Animator跟继承monoBehaviour的类A在同一个节点上,就可以注册类A中的public 方法,含0或1个参数(int,float,object,string),注意:只能是0或1个参数 using UnityEngine; class TAnimEvent:MonoBehaviour { [SerializeField] private Animator mAnimator; public bool abc; void Start() { mAnimator = thi…