NullReferenceException: Object reference not set to an instance of an object
Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory)
Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.Object[] args, System.String cacheKeyName, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory)
Boo.Lang.Runtime.RuntimeServices.SetProperty (System.Object target, System.String name, System.Object value)
WehicleScript.Start () (at Assets/Resources/WehicleScript.js:27)
Effect on this line of script at “vehicle.GetComponent…” below:
function Start () {
Player = GameObject.FindWithTag("Player");
mainCamera = GameObject.FindWithTag("MainCamera");
weaponCamera = GameObject.FindWithTag("WeaponCamera");
vehicleCam.camera.enabled = false;
vehicle.GetComponent(VehicleControllScript).controlsEnabled = false;
vehicleCam.GetComponent(AudioListener).enabled = false;