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