NullReferenceException: Object reference not set to an instance of an object
FPSController.PlayerMovement () (at Assets/Scripts/FPS Character Scripts/FPSController.cs:74)
FPSController.Update () (at Assets/Scripts/FPS Character Scripts/FPSController.cs:41)
---------------------------------------------------------------------------------------------------------------------------------------
(error)
---------------------------------------------------------------------------------------------------------------------------------------
firstPerson_View.localEulerAngles = firstPerson_View_Rotation;
---------------------------------------------------------------------------------------------------------------------------------------
(code unity seems to have a problem with),NullReferenceException: Object reference not set to an instance of an object
FPSController.PlayerMovement () (at Assets/Scripts/FPS Character Scripts/FPSController.cs:74)
FPSController.Update () (at Assets/Scripts/FPS Character Scripts/FPSController.cs:41)
--------------------------------------------------------------------------------------------------------------------------------------
that is the error I keep getting
--------------------------------------------------------------------------------------------------------------------------------------
firstPerson_View.localEulerAngles = firstPerson_View_Rotation;
--------------------------------------------------------------------------------------------------------------------------------------
and that is the code unity has a problem with.
↧