void UpdateGUICollider() { PointOfInterestIntern collisionChild = transform.GetComponentInChildren <PointOfInterestIntern>(); if (collisionChild == null) { GameObject child = new GameObject(); collisionChild = child.AddComponent <PointOfInterestIntern>(); child.name = "GUI Auxiliar Collider"; child.layer = LayerMask.NameToLayer("PointOfInterest"); child.transform.SetParent(transform); child.transform.localPosition = Vector3.zero; child.transform.localScale = Vector3.one; child.transform.localRotation = Quaternion.identity; } collisionChild.pointOfInterestComponent = this; }
void HideNearField(PointOfInterestIntern point) { _currentCollisionData = new CollisionData(); }