Unity: Roll-a-Ball: 6.3 Write a conditional statement

Roll-a-Ball: 6.3 Write a conditional statement
In this tutorial, you’ll:

– Revise your PlayerController script to make PickUpGameObjects disappear when they collide with the Player sphere
– Tag PickUp GameObjects and write conditional statements to make sure they’re the only things that disappear
– Set the Prefab PickUp Collider as a trigger and add a Rigidbody component, to make the collectibles work properly

For the full course on Unity learn to go: https://learn.unity.com/project/roll-a-ball

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.