Пример #1
0
 private void OnObstacleDespawnTriggerEnterEvent(Collider col)
 {
     if (isActive)
     {
         ObstacleController obstacleController = col.GetComponentInParent <ObstacleController>();
         if (obstacleController != null)
         {
             obstacleController.Despawn();
         }
     }
 }