![I've just started learning how to code for the first time on Unity, but I have this problem. It keeps saying "Top-level statements must precede namespace and type declarations". I've looked at I've just started learning how to code for the first time on Unity, but I have this problem. It keeps saying "Top-level statements must precede namespace and type declarations". I've looked at](https://preview.redd.it/gznnnyv2rri91.png?width=907&format=png&auto=webp&s=4e1c6ca927b1e5d7e33d1de33ad235134f490fd4)
I've just started learning how to code for the first time on Unity, but I have this problem. It keeps saying "Top-level statements must precede namespace and type declarations". I've looked at
![Sarge on Twitter: "#UnityTips Use the right Update method. MonoBehaviour.Update: Catching user input. MonoBehaviour.FixedUpdate: Physics related movement. MonoBehaviour.LateUpdate: Animation overriding and camera movement. https://t.co/bnmWujlgtk ... Sarge on Twitter: "#UnityTips Use the right Update method. MonoBehaviour.Update: Catching user input. MonoBehaviour.FixedUpdate: Physics related movement. MonoBehaviour.LateUpdate: Animation overriding and camera movement. https://t.co/bnmWujlgtk ...](https://pbs.twimg.com/media/EUcLqfuX0AIHbwZ.png)
Sarge on Twitter: "#UnityTips Use the right Update method. MonoBehaviour.Update: Catching user input. MonoBehaviour.FixedUpdate: Physics related movement. MonoBehaviour.LateUpdate: Animation overriding and camera movement. https://t.co/bnmWujlgtk ...
![C# & Unity MonoBehaviour Cheat Sheet by konsnos - Download free from Cheatography - Cheatography.com: Cheat Sheets For Every Occasion C# & Unity MonoBehaviour Cheat Sheet by konsnos - Download free from Cheatography - Cheatography.com: Cheat Sheets For Every Occasion](https://media.cheatography.com/storage/thumb/konsnos_c-and-unity-monobehaviour.750.jpg)
C# & Unity MonoBehaviour Cheat Sheet by konsnos - Download free from Cheatography - Cheatography.com: Cheat Sheets For Every Occasion
![private field with SerializeField attribute in non-monobehaviour classes produce "never assigned" warning · Issue #324 · JetBrains/resharper-unity · GitHub private field with SerializeField attribute in non-monobehaviour classes produce "never assigned" warning · Issue #324 · JetBrains/resharper-unity · GitHub](https://user-images.githubusercontent.com/6631429/34623434-5ef4a9e4-f21f-11e7-815f-3318a9a8a280.png)