I am thinking i would change the color of dropper only when it hits the player, that is, don’t change color when hitting ground or other obstacles. Is there any code i could use to customize that if it hits player then change color, otherwise don’t?
Is it explained in further lectures? Because i didn’t watch the entire video before asking this doubt and he raised the same issue at the end.
Hi Neel507,
Welcome to our community!
We use tags to filter certain cases. You could do the same. And if you don’t want to use tags for some reason, you could use an if-statement with a name to prevent things from happening. If you want to challenge yourself, please feel free to test your ideas. Use Debug.Logs to get additional information during runtime.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.