Ive been using unity and c# scripting for about 4 days now, so you can bet im pretty experienced. I have a simple question about scripts sharing fields and referencing off of one another.
I understand the the field has to be set as public but i have no idea how to reference the script itself not just the field.
I'm trying to get an if statement to reference and change a value of another script that can be accessed by one of the public fields.
any advice would help :)
https://stackoverflow.com/questions/65546533/beginner-c-sharp-and-unity-question-referencing-scripts January 03, 2021 at 12:05PM
没有评论:
发表评论