ColiderCheck.cs 393 B

12345678910111213141516
  1. using UnityEngine;
  2. public class ColiderCheck : MonoBehaviour
  3. {
  4. private void OnTriggerEnter(UnityEngine.Collider other)
  5. {
  6. if (FlowManager.Inst != null)
  7. FlowManager.Inst.CheckCollider(other, true);
  8. }
  9. void OnTriggerExit(UnityEngine.Collider other)
  10. {
  11. if (FlowManager.Inst != null)
  12. FlowManager.Inst.CheckCollider(other, false);
  13. }
  14. }