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
}
}
MonoBehaviour
'sOnCollisionEnter
and similar methods you can override to achieve your goal. \$\endgroup\$