var score : GameObject;
function OnControllerColliderHit(hit : ControllerColliderHit){
if(hit.gameObject.tag=="start"){
score.GetComponent("Score").AddToScore();
Destroy(gameObject.Find("start"));
}
}
as you can see in my script i have a scoreboard that when my player hit the gameodject start add 1 point . in my world i have 100 start so my question is what is the best way to this in the script also you can see that i only have one start so how can i make the other 99 in the script