im tring to make it so when i run into an object it goes away and your score goes up.
but i cant seem to get the score to show up on the screen and when i run into the object it just gets kicked
but the codes im useing i dont think i put them in the right spots is what im guessing
i got void OnTriggerEnter(Collider other) {
if(other.gameobject.tag == “food”){
AIscript.player_score++;
Destory(pther.gameobject);
}
}
then i got the viod update that makes it so if u get all of the objects it loads the next lvl