public OilCoolerPart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { // Written, 28.10.2020 /*this.oilCoolerLines = this.rigidPart.transform.FindChild("Lines").gameObject; * this.oilCoolerLines.SetActive(true);*/ }
public CruiseControlPanel(PartSaveInfo inPartSaveInfo, GameObject part, GameObject parent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, part, parent, inPartTrigger, inPartPosition, inPartRotation) { // Written, 18.10.2018 // Adding cruise control function to the rigid part, (installed). this.rigidPart.AddComponent <CruiseControl>(); // Adding fix scale function to parts. this.activePart.AddComponent <FixedScaleMono>(); }
internal TurboModSaveData(TurboParts turboParts) { // Written, 04.11.2020 this.turbo = turboParts.turboPart.getSaveInfo(); this.airFilter = turboParts.airFilterPart.getSaveInfo(); this.boostGauge = turboParts.boostGaugePart.getSaveInfo(); this.carbPipe = turboParts.carbPipePart.getSaveInfo(); this.downPipe = turboParts.turboPart.getSaveInfo(); if (this.downPipe.installed) { this.isDownPipeDown = turboParts.downPipePart.isInDownPosition; } this.headers = turboParts.headersPart.getSaveInfo(); this.highFlowAirFilter = turboParts.highFlowAirFilterPart.getSaveInfo(); this.oilCooler = turboParts.oilCoolerPart.getSaveInfo(); this.oilLines = turboParts.oilLinesPart.getSaveInfo(); this.wastegate = turboParts.wastegateActuatorPart.getSaveInfo(); this.wastegatePsi = turboParts.wastegateActuatorPart.wastegateAdjust.turboSimulation?.wastegatePsi ?? 0; }
public TurboPart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { // Written, 27.10.2020 // destorying new looking turbo mesh from parts Object.DestroyImmediate(this.activePart.transform.FindChild("turbomesh").gameObject); Object.DestroyImmediate(this.rigidPart.transform.FindChild("turbomesh").gameObject); // Destorying audio source from parts. Object.DestroyImmediate(this.rigidPart.transform.FindChild("handgrind").gameObject); Object.DestroyImmediate(this.activePart.transform.FindChild("flutter").gameObject); Object.DestroyImmediate(this.activePart.transform.FindChild("handgrind").gameObject); Object.DestroyImmediate(this.activePart.transform.FindChild("turbospool").gameObject); // Assigning turbo related monos this.rigidPart.AddComponent <TurboSimulation>(); this.activePart.AddComponent <CheckTurboConditionMono>(); //Assigning active installed pos and rot this.installedPos = inPartPosition; this.installedRot = inPartRotation; // Audio this.initializeAudio(); }
//Called when mod is loading public override void OnLoad() { try { // Creating "ccpanel" GameObject temp_ccPanel; AssetBundle bundle = LoadAssets.LoadBundle(this, "cruiseassets.unity3d"); temp_ccPanel = bundle.LoadAsset("ccobject.prefab") as GameObject; // Making panel owner of buttons and wires. this.ccPanel = temp_ccPanel.transform.FindChild("Panel").gameObject; temp_ccPanel.transform.FindChild("BtnClr").gameObject.transform.SetParent(this.ccPanel.transform); temp_ccPanel.transform.FindChild("BtnOnOff").gameObject.transform.SetParent(this.ccPanel.transform); temp_ccPanel.transform.FindChild("BtnRes").gameObject.transform.SetParent(this.ccPanel.transform); temp_ccPanel.transform.FindChild("BtnSet").gameObject.transform.SetParent(this.ccPanel.transform); temp_ccPanel.transform.FindChild("Wires").gameObject.transform.SetParent(this.ccPanel.transform); // Setting scale of panel. this.ccPanel.transform.localScale = CruiseControlPanel.scale; // Adding rigidbody and mesh collider. this.ccPanel.AddComponent <Rigidbody>(); this.ccPanel.AddComponent <MeshCollider>().convex = true; // loading part data PartSaveInfo ccPanel_partSaveInfo = this.loadSaveData(); // Creating ccpanel part. this.ccPanel.name = "Cruise Control Panel"; GameObject _parent = GameObject.Find("stock steering wheel(Clone)"); Trigger trigger = new Trigger("ccPanelTrigger", _parent, new Vector3(0.112f, 0.042f, 0.016f), Quaternion.Euler(0, 0, 80.00001f), new Vector3(0.1f, 0.1f, 0.1f), false); this.cruiseControlPanel = new CruiseControlPanel(ccPanel_partSaveInfo, this.ccPanel, _parent, trigger, new Vector3(0.112f, 0.042f, 0.016f), Quaternion.Euler(0, 0, 80.00001f)); // Destorying ccpanel copy. Object.Destroy(this.ccPanel); // Unloading bundle. bundle.Unload(false); ModConsole.Print(string.Format("{0}, v{1}: Loaded", this.Name, this.Version)); } catch (System.Exception ex) { ModConsole.Error(string.Format("Error: {0}\r\nStacktrace: {1}", ex.Source, ex.StackTrace)); } }
public TruckEngine(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { }
public BoostGaugePart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { // Written, 03.11.2020 this.gaugeNeedle = this.rigidPart.transform.GetChild(2).gameObject; }
public ChargePipeHotSidePart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { }
public IntercoolerPart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { }
public Turbine(PartSaveInfo inPartSaveInfo, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation, GameObject part, GameObject parent) : base(inPartSaveInfo, part, parent, inPartTrigger, inPartPosition, inPartRotation) { //rigidPart.GetComponent<MeshCollider>().enabled = false; // This is where you would add components to 'RigidPart' And/Or 'ActivePart' }
public HeadGasket(PartSaveInfo inPartSaveInfo, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation, GameObject part, GameObject parent) : base(inPartSaveInfo, part, parent, inPartTrigger, inPartPosition, inPartRotation) { // This is where you would add components to 'RigidPart' And/Or 'ActivePart' }
public override void OnLoad() { satsuma = GameObject.Find("SATSUMA(557kg, 248)"); raccarb = GameObject.Find("racing carburators(Clone)"); carb2 = GameObject.Find("twin carburators(Clone)"); powerMP = FsmVariables.GlobalVariables.FindFsmFloat("EnginePowerMultiplier"); pullmesh = GameObject.Find("crankshaft_pulley_mesh"); inVencle = FsmVariables.GlobalVariables.FindFsmString("PlayerCurrentVehicle"); engine_head = GameObject.Find("cylinder head(Clone)"); Mixture = satsuma.transform.GetChild(14).GetChild(1).GetChild(3).gameObject.GetComponents <PlayMakerFSM>()[1].FsmVariables.FloatVariables[16]; math1 = satsuma.transform.GetChild(14).GetChild(1).GetChild(7).gameObject.GetComponent <PlayMakerFSM>().FsmVariables.FloatVariables[1]; n2o = satsuma.transform.GetChild(14).GetChild(1).GetChild(7).gameObject.GetComponent <PlayMakerFSM>().FsmStates[4]; n2oPSI = satsuma.transform.GetChild(14).GetChild(1).GetChild(7).gameObject.GetComponent <PlayMakerFSM>().FsmVariables.FloatVariables[4]; drivetrain = satsuma.GetComponent <Drivetrain>(); sparkRetard = satsuma.transform.GetChild(14).GetChild(1).GetChild(7).gameObject.GetComponent <PlayMakerFSM>().FsmVariables.FloatVariables[7]; noN2O = satsuma.transform.GetChild(14).GetChild(1).GetChild(7).gameObject.GetComponent <PlayMakerFSM>().FsmStates[5]; heat = FsmVariables.GlobalVariables.FindFsmFloat("EngineTemp"); AssetBundle ab = LoadAssets.LoadBundle(this, "turbo.unity3d"); turbine = ab.LoadAsset("Turbine.prefab") as GameObject; turbine.name = "Turbine"; turbine.tag = "PART"; turbine.layer = LayerMask.NameToLayer("Parts"); pulley = ab.LoadAsset("Pulley.prefab") as GameObject; pulley.name = "Pulley"; pulley.tag = "PART"; pulley.layer = LayerMask.NameToLayer("Parts"); pipe = ab.LoadAsset("Pipe.prefab") as GameObject; pipe.name = "Pipe"; pipe.tag = "PART"; pipe.layer = LayerMask.NameToLayer("Parts"); pipe_rac_carb = ab.LoadAsset("Pipe rac_carb.prefab") as GameObject; pipe_rac_carb.name = "racing carburators pipe"; pipe_rac_carb.tag = "PART"; pipe_rac_carb.layer = LayerMask.NameToLayer("Parts"); belt = ab.LoadAsset("Belt.prefab") as GameObject; belt.name = "Turbine belt"; belt.tag = "PART"; belt.layer = LayerMask.NameToLayer("Parts"); turbinegauge = ab.LoadAsset("Датчик.prefab") as GameObject; turbinegauge.name = "Turbine gauge"; turbinegauge.tag = "PART"; turbinegauge.layer = LayerMask.NameToLayer("Parts"); pipe_2_carb = ab.LoadAsset("Pipe 2_carb.prefab") as GameObject; pipe_2_carb.name = "Twin carburators pipe"; pipe_2_carb.tag = "PART"; pipe_2_carb.layer = LayerMask.NameToLayer("Parts"); switch_button = ab.LoadAsset("Switch.prefab") as GameObject; switch_button.name = "Switch button"; switch_button.tag = "PART"; switch_button.layer = LayerMask.NameToLayer("Parts"); headgasket = ab.LoadAsset("Head_gasket.prefab") as GameObject; headgasket.name = "Additional Head Gasket"; headgasket.tag = "PART"; headgasket.layer = LayerMask.NameToLayer("Parts"); filter = ab.LoadAsset("filter.prefab") as GameObject; filter.name = "filter"; filter.tag = "PART"; filter.layer = LayerMask.NameToLayer("Parts"); PartSaveInfo pulleySaveInfo = null, turbineSaveInfo = null, pipeSaveInfo = null, pipe_rac_carbSaveInfo = null, beltSaveInfo = null, turbinegaugeSaveInfo = null, pipe_2_carbSaveInfo = null, switch_buttonSaveInfo = null, filterSaveInfo = null, headgasketSaveInfo = null; pulleySaveInfo = LoadSaveData("pulleySaveInfo"); turbineSaveInfo = LoadSaveData("turbineSaveInfo"); pipeSaveInfo = LoadSaveData("pipeSaveInfo"); pipe_rac_carbSaveInfo = LoadSaveData("pipe_rac_carbSaveInfo"); beltSaveInfo = LoadSaveData("beltSaveInfo"); turbinegaugeSaveInfo = LoadSaveData("turbinegaugeSaveInfo"); pipe_2_carbSaveInfo = LoadSaveData("pipe_2_carbSaveInfo"); switch_buttonSaveInfo = LoadSaveData("switch_buttonSaveInfo"); filterSaveInfo = LoadSaveData("filterSaveInfo"); headgasketSaveInfo = LoadSaveData("headgasketSaveInfo"); try { buysafeinfo = SaveLoad.DeserializeSaveFile <Safeinfo>(this, "Safeinfo"); } catch { } if (buysafeinfo == null) { buysafeinfo = new Safeinfo() { Buybelt = false, Buypipe = false, Buypipe_2_carb = false, Buypipe_rac_carb = false, Buypulley = false, Buyturbine = false, Buyturbinegauge = false, Buyswitch_button = false, Buyfilter = false, Buyheadgasket = false, Beltwear = 100, Filterwear = 100, Turbinewear = 100, BoostOn = true }; } if (!buysafeinfo.Buyturbine) { turbineSaveInfo = null; } if (!buysafeinfo.Buybelt) { beltSaveInfo = null; } if (!buysafeinfo.Buypulley) { pulleySaveInfo = null; } if (!buysafeinfo.Buypipe) { pipeSaveInfo = null; } if (!buysafeinfo.Buypipe_rac_carb) { pipe_rac_carbSaveInfo = null; } if (!buysafeinfo.Buypipe_2_carb) { pipe_2_carbSaveInfo = null; } if (!buysafeinfo.Buyturbinegauge) { turbinegaugeSaveInfo = null; } if (!buysafeinfo.Buyswitch_button) { switch_buttonSaveInfo = null; } if (!buysafeinfo.Buyfilter) { filterSaveInfo = null; } if (!buysafeinfo.Buyheadgasket) { headgasketSaveInfo = null; } GameObject pulleyparent = GameObject.Find("crankshaft_pulley_mesh"); Trigger pulleytrigger = new Trigger("pulleyTrigger", pulleyparent, new Vector3(0.027f, 0.0f, 0.0f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); pulleyPart = new Pulley(pulleySaveInfo, pulleytrigger, new Vector3(0.027f, 0.0f, 0.0f), new Quaternion(0, 0, 0, 0), pulley, pulleyparent); GameObject turbineparent = GameObject.Find("block(Clone)"); Trigger turbinetrigger = new Trigger("turbineTrigger", turbineparent, new Vector3(0.234f, 0.14f, 0.0817f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); turbinePart = new Turbine(turbineSaveInfo, turbinetrigger, new Vector3(0.234f, 0.14f, 0.0817f), Quaternion.Euler(90, 0, 0), turbine, turbineparent); GameObject pipeparent = turbinePart.rigidPart; Trigger pipetrigger = new Trigger("pipeTrigger", pipeparent, new Vector3(-0.12f, 0.085f, -0.04f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); pipePart = new Pipe(pipeSaveInfo, pipetrigger, new Vector3(-0.12f, 0.085f, -0.04f), new Quaternion(0, 0, 0, 0), pipe, pipeparent); GameObject pipe_rac_carbparent = GameObject.Find("cylinder head(Clone)"); pipe_rac_carbtrigger = new Trigger("pipe_rac_carbTrigger", pipe_rac_carbparent, new Vector3(0.013f, -0.139f, 0.12f), Quaternion.Euler(90, 0, 0), new Vector3(0.3f, 0.3f, 0.3f), false); pipe_rac_carbPart = new Pipe_rac_carb(pipe_rac_carbSaveInfo, pipe_rac_carbtrigger, new Vector3(0.013f, -0.139f, 0.12f), Quaternion.Euler(90, 0, 0), pipe_rac_carb, pipe_rac_carbparent); GameObject beltparent = turbinePart.rigidPart; belttrigger = new Trigger("beltTrigger", beltparent, new Vector3(0.035f, -0.091f, 0.08f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); beltPart = new Belt(beltSaveInfo, belttrigger, new Vector3(0.035f, -0.091f, 0.08f), new Quaternion(0, 0, 0, 0), belt, beltparent); GameObject turbinegaugeParent = GameObject.Find("dashboard(Clone)"); Trigger turbinegaugeTrigger = new Trigger("turbinegaugeTriger", turbinegaugeParent, new Vector3(0.48f, -0.04f, 0.135f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); turbinegaugePart = new Turbinegauge(turbinegaugeSaveInfo, turbinegaugeTrigger, new Vector3(0.48f, -0.04f, 0.135f), Quaternion.Euler(0, 0, 345), turbinegauge, turbinegaugeParent); GameObject pipe_2_carbparent = GameObject.Find("cylinder head(Clone)"); pipe_2_carbtrigger = new Trigger("pipe_2_carbTrigger", pipe_rac_carbparent, new Vector3(0.06f, -0.147f, 0.04f), Quaternion.Euler(0, 0, 0), new Vector3(0.3f, 0.3f, 0.3f), false); pipe_2_carbPart = new Pipe_2_carb(pipe_2_carbSaveInfo, pipe_2_carbtrigger, new Vector3(0.06f, -0.147f, 0.04f), Quaternion.Euler(90, 0, 0), pipe_2_carb, pipe_2_carbparent); GameObject switchbuttonparent = GameObject.Find("dashboard(Clone)"); Trigger switchbuttontrigger = new Trigger("switchbuttonTrigger", switchbuttonparent, new Vector3(0.54f, -0.062f, -0.065f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); switch_buttonPart = new Switchbutton(switch_buttonSaveInfo, switchbuttontrigger, new Vector3(0.54f, -0.062f, -0.065f), Quaternion.Euler(12, 0, 0), switch_button, switchbuttonparent); GameObject filterparent = pipePart.rigidPart; Trigger filtertrigger = new Trigger("filterTrigger", filterparent, new Vector3(-0.14f, 0.075f, -0.035f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); filterPart = new Filter(filterSaveInfo, filtertrigger, new Vector3(-0.14f, 0.075f, -0.035f), Quaternion.Euler(0, 0, 0), filter, filterparent); GameObject headgasketparent = GameObject.Find("head gasket(Clone)"); headgaskettrigger = new Trigger("headgasketTrigger", headgasketparent, new Vector3(0f, 0f, 0.003f), Quaternion.Euler(0, 0, 0), new Vector3(0.1f, 0.1f, 0.1f), false); headgasketPart = new HeadGasket(headgasketSaveInfo, headgaskettrigger, new Vector3(0f, 0f, 0.003f), Quaternion.Euler(0, 0, 0), headgasket, headgasketparent); shop = GameObject.Find("Shop for mods").GetComponent <ShopItem>(); shop_turbine = new ProductDetails() { productName = "Centrifugal supercharger", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("Turbine_ico.png"), productPrice = 3499 }; if (!buysafeinfo.Buyturbine) { shop.Add(this, shop_turbine, ShopType.Fleetari, Buy_turbine, turbinePart.activePart); turbinePart.activePart.SetActive(false); } shopbelt = new ProductDetails() { productName = "Belt", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("Belt.png"), productPrice = 299 }; if (!buysafeinfo.Buybelt) { shop.Add(this, shopbelt, ShopType.Fleetari, Buy_belt, beltPart.activePart); beltPart.activePart.SetActive(false); } if (!buysafeinfo.Buypulley) { ProductDetails shop_pulley = new ProductDetails() { productName = "Pulley", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("pulley.png"), productPrice = 399 }; shop.Add(this, shop_pulley, ShopType.Fleetari, Buy_pulley, pulleyPart.activePart); pulleyPart.activePart.SetActive(false); } if (!buysafeinfo.Buypipe) { ProductDetails shop_pipe = new ProductDetails() { productName = "Pipe", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("pipe.png"), productPrice = 749 }; shop.Add(this, shop_pipe, ShopType.Fleetari, Buy_pipe, pipePart.activePart); pipePart.activePart.SetActive(false); } if (!buysafeinfo.Buypipe_rac_carb) { ProductDetails shop_pipe_rac_carb = new ProductDetails() { productName = "Racing carburators pipe", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("pipe2.png"), productPrice = 749 }; shop.Add(this, shop_pipe_rac_carb, ShopType.Fleetari, Buy_pipe_rac_carb, pipe_rac_carbPart.activePart); pipe_rac_carbPart.activePart.SetActive(false); } if (!buysafeinfo.Buypipe_2_carb) { ProductDetails shop_pipe_2_carb = new ProductDetails() { productName = "Twin carburators pipe", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("pipe3.png"), productPrice = 749 }; shop.Add(this, shop_pipe_2_carb, ShopType.Fleetari, Buy_pipe_2_carb, pipe_2_carbPart.activePart); pipe_2_carbPart.activePart.SetActive(false); } if (!buysafeinfo.Buyturbinegauge) { ProductDetails shop_turbinegauge = new ProductDetails() { productName = "Turbine gauge", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("Гаджет.png"), productPrice = 499 }; shop.Add(this, shop_turbinegauge, ShopType.Fleetari, Buy_turbinegauge, turbinegaugePart.activePart); turbinegaugePart.activePart.SetActive(false); } if (!buysafeinfo.Buyswitch_button) { ProductDetails shop_switch_button = new ProductDetails() { productName = "Switch button", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("switch 1.png"), productPrice = 249 }; shop.Add(this, shop_switch_button, ShopType.Fleetari, Buy_switch_button, switch_buttonPart.activePart); switch_buttonPart.activePart.SetActive(false); } shop_filter = new ProductDetails() { productName = "Filter", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("filter.png"), productPrice = 99 }; if (!buysafeinfo.Buyfilter) { shop.Add(this, shop_filter, ShopType.Fleetari, Buy_filter, filterPart.activePart); filterPart.activePart.SetActive(false); } if (!buysafeinfo.Buyheadgasket) { ProductDetails shop_headgasket = new ProductDetails() { productName = "Additional Head Gasket", multiplePurchases = false, productCategory = "Details", productIcon = ab.LoadAsset <Sprite>("headgasket.png"), productPrice = 329 }; shop.Add(this, shop_headgasket, ShopType.Fleetari, Buy_headgasket, headgasketPart.activePart); headgasketPart.activePart.SetActive(false); } ab.Unload(false); UnityEngine.Object.Destroy(turbine); UnityEngine.Object.Destroy(pulley); UnityEngine.Object.Destroy(pipe); UnityEngine.Object.Destroy(pipe_rac_carb); UnityEngine.Object.Destroy(belt); UnityEngine.Object.Destroy(turbinegauge); UnityEngine.Object.Destroy(ab); UnityEngine.Object.Destroy(pipe_2_carb); UnityEngine.Object.Destroy(switch_button); turbinePart.rigidPart.GetComponent <AudioSource>().volume = 0; racingcarb_inst = false; carb2_inst = false; fullreset = false; if (buysafeinfo.BoostOn) { switch_buttonPart.rigidPart.transform.GetChild(0).transform.localRotation = Quaternion.Euler(50, 0, 0); } else { switch_buttonPart.rigidPart.transform.GetChild(0).transform.localRotation = Quaternion.Euler(-50, 0, 0); } ModConsole.Print("Supercharger for Satsuma was loaded."); }
public WastegateActuatorPart(PartSaveInfo inPartSaveInfo, GameObject inPart, GameObject inParent, Trigger inPartTrigger, Vector3 inPartPosition, Quaternion inPartRotation) : base(inPartSaveInfo, inPart, inParent, inPartTrigger, inPartPosition, inPartRotation) { // Written, 28.10.2020 this.wastegateAdjust = this.rigidPart.AddComponent <WastegateAdjustMono>(); }