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
How create c# code script Unity3D to make 4 collectable Object to spawn randomly and the player collect them and count
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How create c# code script Unity3D to make 4 collectable Object to spawn randomly and the player collect them and count
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!