private void RefreshFindCar() { targetVehicle = null; DestinyEngine.VehicleScript vehicle = DestinyEngineController.main.ActiveVehicle; if (vehicle != null) { targetVehicle = vehicle; } }
public void CommandExecute(ActionCommand command) { if (command.commandID == "Retrieve") { Retrieve(); } else if (command.commandID == "Rope_Unroll") { isRopeUnrolled = true; } else if (command.commandID == "Rope_Cancel") { isRopeUnrolled = false; targetVehicle = null; } else if (command.commandID == "Rope_Attach") { isRopeAttached = true; } else if (command.commandID == "Rope_Deattach") { isRopeAttached = false; targetVehicle = null; } else if (command.commandID == "Tow_On") { isTowing = true; } else if (command.commandID == "Tow_Off") { isTowing = false; } else if (command.commandID == "Setting") { DestinyInternalCommand.instance.Quit_ActionCommand(); DestinyInternalCommand.instance.Game_LockGame(true, true); UI_Canvas.gameObject.SetActive(true); } UpdateTowingEquipment(); }