How create c# code script Unity3D to make 4 collectable Object to spawn randomly and the player collect them and count

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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
How Create C Code Script Unity3d To Make 4 Collectable Object To Spawn Randomly And The Player Collect Them And Count 1
How Create C Code Script Unity3d To Make 4 Collectable Object To Spawn Randomly And The Player Collect Them And Count 1 (93.45 KiB) Viewed 47 times
Collectable Object Player
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply