I'm trying to make it so when the player presses the RMB, another object, with a different script, plays a noise. There are 5 cars, and you get a random one when the game starts, I only want the car you get picked to make the noise. Is there anyway of doing this? (C#)
Basically, the player gets a car to look for, and when they find it, they win, but they have to find the correct car. You get a random car each time, and I want it so to help the player find the correct car, they can beep the car. I only want the car they are searching for to beep, and I want to call it from one script to another.
Even more basically, I would like to know how to call script to script in C# unity. Thanks!