Exemple #1
0
 private void OnEnable()
 {
     _oneWayDetection = GetComponent <OneWayDetection>();
     _oneWayDetection.DetectedRight += DetectedRight;
     _oneWayDetection.DetectedLeft  += DetectedLeft;
 }
Exemple #2
0
 private void OnEnable()
 {
     _oneWayDetection = GetComponent <OneWayDetection>();
     _oneWayDetection.DetectedRight += CheckCollider;
 }