How do I sense when the player collides with a door in a GameController script?


I want to be able to sense when the player collides with a door from my GameController script. The player is a public GameObject and doors are tagged as such. Here is psuedo code for what I’m looking for:

public class GameController : MonoBehaviour {    public GameObject player;     void Update()    {       if(player collides with game object tagged "Door")          do something    } }