// Use this for initialization void Start() { _forkliftInput = forklift.GetComponent <ForkliftPlayerInput>(); _vehicleInput = forklift.GetComponent <WSMVehiclePlayerInput>(); FormatControlsText(); }
// Use this for initialization void Start() { if (backhoe != null) { _backhoeInput = backhoe.GetComponent <BackhoePlayerInput>(); _vehicleInput = backhoe.GetComponent <WSMVehiclePlayerInput>(); FormatControlsText(); } }
// Use this for initialization void Start() { if (dumpTruck != null) { _dumpTruckInput = dumpTruck.GetComponent <DumpTruckPlayerInput>(); _vehicleInput = dumpTruck.GetComponent <WSMVehiclePlayerInput>(); FormatControlsText(); } }