| 123456789101112131415161718192021222324252627 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityCommon;
- using UnityEngine;
- namespace DTYJ
- {
- public class TrainTrigger : MonoBehaviour
- {
- private void Start()
- {
- Utility.DelayExe(0.5f, () =>
- {
- GetComponent<Collider>().enabled = true;
- });
- }
- //private void OnTriggerEnter(Collider other)
- //{
- // Debug.Log($"enter+{other.name}");
- //}
- //private void OnTriggerExit(Collider other)
- //{
- // Debug.Log($"Exit+{other.name}");
- //}
- }
- }
|