// Update is called once per frame public override void Update() { if (Application.loadedLevel == 3) { if (!NewStart) { FleetariMonoGo = new GameObject(); Mono = FleetariMonoGo.AddComponent <FleetariTowingMono>(); Mono.StartCoroutine(GetGameobjects()); NewStart = true; } RayCastPlayer(); CheckPlayerBrochureDistance(); } if (Application.loadedLevel != 3) { ResetMod(); } if (Input.GetKeyDown(KeyCode.Alpha0)) { var writer = new StreamWriter("REPAIRSHOPEVENTS.txt"); writer.Close(); } }
//Check What kind of vehicle on paper internal void CheckSelectedVehicle() { if (CheckBoxSatsuma == "☑" && CheckBoxSatsumaExtra == "☑") { Mono.StartCoroutine(CheckMoney("SATSUMA(557kg)", new Vector3(1551, 5, 727), 5000)); } if (CheckBoxSatsuma == "☑" && CheckBoxSatsumaExtra == "☐") { Mono.StartCoroutine(CheckMoney("SATSUMA(557kg)", new Vector3(6, TpHeight, 30), 3000)); } if (CheckBoxFerndale == "☑") { Mono.StartCoroutine(CheckMoney("FERNDALE(1630kg)", new Vector3(1554, 5, 724), 4000)); } if (CheckBoxVan == "☑") { Mono.StartCoroutine(CheckMoney("HAYOSIKO(1500kg)", new Vector3(3, TpHeight, 30), 5000)); } if (CheckBoxTruck == "☑") { Mono.StartCoroutine(CheckMoney("GIFU(750/450psi)", new Vector3(0, TpHeight, 30), 10000)); } if (CheckBoxTractor == "☑") { Mono.StartCoroutine(CheckMoney("KEKMET(350-400psi)", new Vector3(-3, TpHeight, 30), 6000)); } if (CheckBoxFlatbed == "☑") { Mono.StartCoroutine(CheckMoney("FLATBED", new Vector3(-6, TpHeight, 30), 2000)); } if (CheckBoxMoped == "☑") { Mono.StartCoroutine(CheckMoney("JONNEZ ES(Clone)", new Vector3(-9, TpHeight, 30), 2000)); } }