Here's a tutorial on how to have one script interact with another in unity, using c#.
The 3 main methods I use are:
Triggering a function in a script, from another script
Querying variables in a script, from another script
Setting new values to a script's variables, from another script
Hope it helps!
Please support my channel if you'd like. It would mean a lot:
https://ko-fi.com/danndx
На этой странице сайта вы можете посмотреть видео онлайн Unity C# - How to interact between scripts длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Danndx 30 Июль 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 81,435 раз и оно понравилось 1.2 тысяч зрителям. Приятного просмотра!