private void OnTriggerExit(Collider other) { if (TriggerList.Contains(other.gameObject)) { TriggerList.Remove(other.gameObject); } }
private void OnTriggerStay(Collider other) { if (!TriggerList.Contains(other.gameObject)) { TriggerList.Add(other.gameObject); } }