Hi! I am working on the script, so it automaticly puts in the object it needs. It works fine for all eccept for theese two, which are marked and // I cant any tipping errors and I have rewrote them already a few times. no change. it always says:
NullReferenceException: Object reference not set to an instance of an object
AutoPilot.Awake () (at Assets/AutoPilot.cs:48)
NullReferenceException: Object reference not set to an instance of an object
AutoPilot.Awake () (at Assets/AutoPilot.cs: 52)
yes, It’s all in 1 scene. BUT its a llot of work and its way easier to make it this way 1 time instead of the other way in the inspectior like 20 times