i not sure if this will help but change the other to collision
void OnTriggerEnter(Collider collison)
{
if(collision.gameObject.tag == "Ball")
{
collision.gameObject.SetActive(false);
count += 1;
SetCountText();
Debug.Log ("Score" + count);
Destroy(gameObject);
}
}
↧