I'm getting the following error:
"NullReferenceException: Object reference not set to an instance of an object Ai_Controller.AiInitHeading (.Player_Controller ai, System.String dir, System.String deg) (at Assets/Scripts/Ai_Controller.cs:27) Input_Controller.InputEnter () (at Assets/Scripts/Input_Controller.cs:468) Input_Controller.Update () (at Assets/Scripts/Input_Controller.cs:174)"
Basically, I declare a variable and load it with a C# script component (Player_Controller.)
I then pass that component to Ai_Controller.AiInitHeading() As you can see, the object the Player_Controller component is attached to doesn't seem to make the transition to the function.
Is there some step to passing a script component in a function that I'm overlooking?
AiInitHeading declaration looks like: AiInitHeading( Player_Controller ai, string dir, string deg )