what is the difference between public and private variables , gameobjects and other things in Unity - C# ? ; Thanks for help.
The public variables can easily be changed, while the private variables cannot be easily changed.If you compile the code you can see an input for the public variable in the inspector panel, by changing the variable in the inspector panel you change the variable for that case. However, you will not see one for a private variable.
I would suggest for scripts in which will be use more than 1 times, expose the elements that would be used differently.