Professional Documents
Culture Documents
* Once the relationship between components and GOs is studied, and actions are understood,
now solve the compilation errors shown in the console to run the program.
* Read warnings and solve them.
* Run the program and test it thoroughly to notice any execution errors that may happen.
* In fact, each reference is not held and is searched again and again every time is used. Find a
way to initialize a reference once and keep it to be used when needed.
Check: try a public field and drag the target GO in the Inspector slot.
* Refactorize the code that holds the references and move it to the Start() section. Any
reference that remains unmodified can be placed there.