Hi,
I have a box of balls with colliders I want a way to attach only one ball at a time when the character tries to take a ball how to do it?
I tried on collision with some tags enabling colliders for a random tag but it didn’t look really well enough to help me with this.
Thanks in advance.
Keep track of whether the player has a ball, don’t let them get another one if they already have one.
1 Like
I tried that but every time when there is a collision this check will take place right is there any other way like optimized one!
And thanks for the response
Put the test for if the player has a ball inside the collision check.
Don’t make a second ball if the player already has one.