OnTriggerEnter in GameController?

Hey, I was trying to move a lot of my code from my player object into a game controller. I cannot get my collider to work, can anyone help?

The following function, when in my player object’s script, worked just fine, but now it has moved. I’m sure it just doesn’t find my player object.

Below is my collider function:

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

In your object collider is “Trigger” parameter selected? Happens to me all the time…
Otherwise try to Debug.Log this function and check if your function even recognizes the object when it enters the collider.