Example #1
0
        // Called by the game agent that this input script belongs to when it enters a vehicle.
        protected override bool Initialize(Vehicle vehicle)
        {
            if (!base.Initialize(vehicle))
            {
                return(false);
            }

            gimballedVehicleController = vehicle.GetComponent <GimballedVehicleController>();

            return(gimballedVehicleController != null);
        }
Example #2
0
 protected override void Reset()
 {
     base.Reset();
     gimballedVehicleController = GetComponent <GimballedVehicleController>();
 }