using System.Collections; using System.Collections.Generic; using UnityEngine; namespace HeneGames.Airplane { public class SimpleAirPlaneCollider : MonoBehaviour { public bool collideSometing; [HideInInspector] public SimpleAirPlaneController controller; private void OnTriggerEnter(Collider other) { if (other.GetComponentInParent() != null) return; if (other.gameObject.GetComponent() == null && other.gameObject.GetComponent() == null) { collideSometing = true; } } } }