Question by
Ashmit2020 · Jan 14, 2021 at 08:35 AM ·
playerunity 2dshopstats
How to check which gameobject is player using
In my game I have five cars. One if the car is given to player as a default car. But if the player buys another and playes with it how do I check which car is the player using and how do I mention the player? Is there any method like this
If (player(or something else which defines player) using Car 1) { //Do these steps } Thankyou
Comment
Your answer
Follow this Question
Related Questions
How can I isolate just the character to slow down 0 Answers
Player Skins Won't Load 0 Answers
Targeting Player when Zooming Camera 0 Answers
Ground check BoxCast is detecting when player hits bottom of platform. UNITY 2D C# 0 Answers
EndLess 2D Game 0 Answers