private void OnTriggerExit(Collider other) { if (other.CompareTag("item") && item != null && item.isPick == false) { item.outlinerItem.enabled = false; item.interactionIcon.SetActive(false); item = null; } //pot if (other.CompareTag("pot") && potActuel != null) { potActuel.outlinerItem.enabled = false; potActuel.interactionIcon.SetActive(false); potActuel.interactionIcon2.SetActive(false); potActuel = null; } //panneau if (other.CompareTag("panneau") && panneau != null) { panneau.outlinerItem.enabled = false; panneau.interactionIcon.SetActive(false); panneau = null; } //dialogue if (other.CompareTag("dialogue") && dialogueActuel != null) { //if (managerDialogue.dialogueActive == false) //{ dialogueActuel.DesactiveOutline(); isTalk = false; dialogueActuel.camDialogue.Priority = 0; dialogueActuel.camDialogue.enabled = false; //dialogueActuel.UpgradeQuest(); //dialogueActuel.UpgradeAnimalTalk(); //dialogueActuel.StopDialogue(); dialogueActuel.enabled = false; dialogueActuel = null; managerDialogue.dialogueActive = false; //} } //banc if (other.CompareTag("banc") && bancActuel != null) { bancActuel.DesactiveOutline(); bancActuel.enabled = false; bancActuel = null; } }