You are asked to develop this small prototype game where you control the camera and shoot boxes.
The controller should move the camera on the Horizontal axis (Translate) based on Seconds (not Frames).
Pressing “Space” will shoot the balls (Instantiate).
The Balls will have a script applying a force right after they are instantiated (AddForce).
Make sure the Balls are destroyed after they’re instantiated (5 seconds delay).
A collision test on the balls will check if any of them collided with one of the boxes (OnCollisionEnter with Tags).
If a collision occurred,
Remove the Ball (Destroy),
Destroy the box
Increment the Score (ScoreScript) which has a Text UI (Don’t forget to import the UI library:
using [url removed, login to view];
Since the balls are Prefabs, they can’t have a reference of objects in the scene, so you can start by looking for objects using [url removed, login to view] and access your custom script to increment the score and update the textfield.
Test for the score (in ScoreScript), if it’s bigger or equal to the number of boxes you have, load a new Win Scene using the SceneManager (import it first).
4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
hello, i'm a professional unity/c# developer with extensive unity project experiences. i could help you get it done. could we have a discussion and get it started? thanks,