How create c# code script Unity3D to make 4 collectable Object to spawn randomly and the player collect them and count
Posted: Sat May 14, 2022 4:13 pm
How create c# code script Unity3D to make 4 collectable
Object to spawn randomly and the player collect them and count
points . each object worth 5 point?
I created 4 objects prefabs, and attached rigidbody, boxcollider
and script but I need to make the script to spawn the objects
randomly in the plane and the player collect them.
I created 1 player prefab that walks around
here is a sketch of the scene
Collectable Object Player
Object to spawn randomly and the player collect them and count
points . each object worth 5 point?
I created 4 objects prefabs, and attached rigidbody, boxcollider
and script but I need to make the script to spawn the objects
randomly in the plane and the player collect them.
I created 1 player prefab that walks around
here is a sketch of the scene
Collectable Object Player