↧
Answer by siddharth3322
Here you have some misconcept in mind. First I assume that you have assign this script to **finish line** , based on that my reply work for you. You assign **FinishLine** script to FinishLine object so...
View ArticleAnswer by An-Item
void OnTriggerEnter(Collider collison) //your parameter name collision { if(other.gameObject.tag == "Ball") //but you call other instead { other.gameObject.SetActive(false); count += 1; SetCountText();...
View ArticleAnswer by UnityDevelopper
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;...
View Article