void OnTriggerExit(Collider tOther) { // If interest point, remove it from the list EyeInterest tInterest = tOther.GetComponent <EyeInterest>(); if (tInterest != null) { _tInterest.Remove(tInterest); } }
void OnTriggerEnter(Collider tOther) { // If interest point, add it to the list EyeInterest tInterest = tOther.GetComponent <EyeInterest>(); if (tInterest != null) { _tInterest.Add(tInterest); } }