using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityGameFramework.Runtime; public class SceneEventPointA2Logic : MonoBehaviour { private void Start() { SceneAnimationEvent animEvent = this.transform.Find("zhandou_jijiedian").GetComponent(); animEvent.AnimEnd = AnimEnd; } public void OnTriggerEnter(Collider collider) { Role role = collider.GetComponent(); if (role != null) { this.transform.Find("zhandou_jijiedian").GetComponent().Play("zhandou_jijiedian_end"); } } public void AnimEnd() { EventComponent nowEvent = GameEntry.GetComponent(); nowEvent.FireNow(this, new NoviceEventMassA(false)); } }