I added a script to my game for making a movement of player
this is the errors
I get
this is for camera
Assets/Scripts/camera.js(42,13): BCE0144: ‘UnityEngine.Component.rigidbody’ is obsolete. Property rigidbody has been deprecated. Use GetComponent() instead. (UnityUpgradable)
This is for movement
Assets/Scripts/movement.js(99,24): BCE0144: ‘UnityEngine.Screen.showCursor’ is obsolete. Property showCursor has been deprecated. Use Cursor.visible instead (UnityUpgradable) → UnityEngine.Cursor.visible
3036151–227239–movement.js (2.67 KB)
3036151–227241–camera.js (5.71 KB)