Hey guys
I’ve been trying to complete the Roller Ball tute, the pickup objects are supposed to disappear when the ball collides with them but instead the ball disappears. I was asked to add a tag to the pickup objects which I did. The code I’m using is below, any help would be appreciated
void OnTriggerEnter (Collider other)
{
if (other.gameObject.CompareTag ("Pickup"))
{
gameObject.SetActive (false);
}
}
}