![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
![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
![Why when i open a new script in visual studio the MonoBehaviour is not in light blue ? - Unity Forum Why when i open a new script in visual studio the MonoBehaviour is not in light blue ? - Unity Forum](https://i.imgur.com/1kLKpao.jpg)
Why when i open a new script in visual studio the MonoBehaviour is not in light blue ? - Unity Forum
Script for game with c# - for move "Horizontal" and jump 2d player =============================== public class Player : MonoBehaviour { public float speed; public float Jump; private float move; private Rigidbody2D rb; //
![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)