Question by
alexfh · Feb 22, 2016 at 03:01 PM ·
colliderboxpower-upmario kart
Mario Kart style power ups
Hi, I am currently making a kart game inspired by Mario Kart and Lego Racers. I have 5 different power boxes (red, blue, green, yellow, white) and each of them except the white one have a different power up. When the player enters in collision with a white box, the power he already has is upgraded.
I am using OnTriggerEnter and a switch statement using the other.gameobject..name to identify the box he touched, but from there I have no idea how to give the player the weapon.
Thank you!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612065202im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Box cast issue 0 Answers
Simply creating a box 1 Answer
onmouse over UI pop up help please 0 Answers
My collider2D don't work 1 Answer