private void OnEnable() { _oneWayDetection = GetComponent <OneWayDetection>(); _oneWayDetection.DetectedRight += DetectedRight; _oneWayDetection.DetectedLeft += DetectedLeft; }
private void OnEnable() { _oneWayDetection = GetComponent <OneWayDetection>(); _oneWayDetection.DetectedRight += CheckCollider; }