Moved OnTriggerEnter from Player to Game Controller

Was trying to get a lot of my code into the Game Controller object, but whenever I moved my OnTriggerEnter function, then the colliders stopped colliding.

Any suggestions? I’m guessing that my Game Manager just doesn’t know when the player strikes an object.

Below is my code:

void OnTriggerEnter(Collider other)
{
	if (other.gameObject.CompareTag("Pickup"))
	{
		other.gameObject.SetActive(false);
		count++;
		setCountText ();
	}
}

For OnTriggerEnter() to work the gameobject must contain rigidbody.