ExitEventGameObject.cs 409 B

1234567891011121314151617
  1. using System;
  2. using UnityEngine;
  3. namespace Core.Triiger
  4. {
  5. public class ExitEventGameObject : MonoBehaviour
  6. {
  7. public System.Action<Collider ,ITriggerEntity > OnCollisionExitEvent ;
  8. public Collider Collider;
  9. public ITriggerEntity iTriggerEntity;
  10. private void OnDisable()
  11. {
  12. OnCollisionExitEvent?.Invoke(Collider,iTriggerEntity);
  13. }
  14. }
  15. }