// Token: 0x06000006 RID: 6 RVA: 0x00002510 File Offset: 0x00000710 private void Update() { if (Input.GetKeyDown(KeyCode.F8) && SceneManager.GetActiveScene().name != "SelectCar" && JapanX.IsJapanXActive) { if (this.mapLoaded) { this.rtProbe.SetActive(false); this.rtProbe.SetActive(true); return; } if (SceneManager.GetActiveScene().name != "Airfield") { UnityEngine.Object.Destroy(GameObject.Find("map")); this.LoadJapanXMap(); if (this.spawns.Count <= 0) { UnityEngine.Debug.LogWarning("[JapanX]: WARNING: Map does not have spawns"); return; } RaceCar raceCar = null; RaceCar[] array = UnityEngine.Object.FindObjectsOfType <RaceCar>(); for (int i = 0; i < array.Length; i++) { if (!array[i].isNetworkCar) { raceCar = array[i]; break; } } if (raceCar != null) { raceCar.getTransform.position = this.spawns[0].transform.position; raceCar.getTransform.rotation = this.spawns[0].transform.rotation; Rigidbody getRigidbody = raceCar.carX.getRigidbody; getRigidbody.velocity = Vector3.zero; getRigidbody.angularVelocity = Vector3.zero; return; } } else { UIMessageBox.ShowHint("Navaro is not supported", "JapanX", null, null); UnityEngine.Debug.LogError("[JapanX]: ERROR: Maps not supported for Navaro"); } } }