using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityGameFramework.Runtime; /// /// 场景组件 炸弹 /// public class SceneEventBombEntryLogic : MonoBehaviour { private List roleList; private void Awake() { this.roleList = new List(); } // Start is called before the first frame update void Start() { } public List GetEntryRoleList() { return this.roleList; } public void OnTriggerEnter(Collider collider) { Role newRole = collider.GetComponent(); if(newRole) { roleList.Add(newRole); } } public void OnTriggerExit(Collider collider) { Role newRole = collider.GetComponent(); if(newRole) { roleList.Remove(newRole); } } public void EnableCollider() { } public void OnClickInteractive() { } }