How to make obtainable item ??

well, i am new to UNITY and i wanna make a simple game. The objectives of the game is to collect several items which are separated in the terrain. To put it simply, it’s like a PAC MAN game, where the items can provide scores for the player.

how do i make the item destroyed after i collect them ??

please help me, the fact is that i am suck at programming.

Make all your pickups trigger volumes, and give them the tag ‘wokka’. Then when you walk over them, they will be destroyed and the variable ‘score’ (which you’ll have to declare somewhere, since I haven’t really specified how that works) will be increased by 10. Once you have this working, there are more sophisticated things you can do, like have small scripts on each pickup which define what behaviour they should have.

void OnTriggerEnter(Collider other)
    if(other.tag == "wokka")
        score += 10;

thanks for your help, i will try it

Hi syclamoth,

thanks for your help, i will try it later . . .