private IEnumerator NotifyAtStart() { yield return(new WaitForEndOfFrame()); if (proximityFlag) { Gaze_EventManager.FireProximityEvent(new Gaze_ProximityEventArgs(IOScript, otherGameObject.GetComponentInParent <Gaze_InteractiveObject>(), true)); } }
void OnTriggerExit(Collider other) { if (other.gameObject.GetComponent <Gaze_Proximity>() != null) { if (debug) { Debug.Log("Gaze_Proximity (" + transform.parent.name + ") OnTriggerExit with " + other.GetComponentInParent <Gaze_InteractiveObject>().name); } proximityFlag = false; otherGameObject = other.gameObject; Gaze_EventManager.FireProximityEvent(new Gaze_ProximityEventArgs(IOScript, otherGameObject.GetComponentInParent <Gaze_InteractiveObject>(), false)); } }