// Token: 0x06000485 RID: 1157 RVA: 0x00018B88 File Offset: 0x00016D88 private GameObject SpawnMine() { this.spawnedObject = UnityEngine.Object.Instantiate <GameObject>(this.minePrefab, base.transform.position, base.transform.rotation); this.mineSettings = this.spawnedObject.transform.root.GetComponentInChildren <Mine>(); AutoHide.AddComponent(this.spawnedObject, this.destroyTime); return(this.spawnedObject); }
// Token: 0x0600018A RID: 394 RVA: 0x00003702 File Offset: 0x00001902 private void ApplyAutoHide() { if (this.autoHideScript == null) { this.autoHideScript = AutoHide.AddComponent(base.gameObject, this.onRagdollModeTimer); this.EnableAutoHide(false); } }
// Token: 0x06000483 RID: 1155 RVA: 0x00018A78 File Offset: 0x00016C78 private GameObject SpawnRagdoll() { this.spawnedObject = UnityEngine.Object.Instantiate <GameObject>(this.ragdollPrefab, base.transform.position, base.transform.rotation); this.ragdollSettings = this.spawnedObject.transform.root.GetComponentInChildren <RagdollSettings>(); this.ragdollSettings.CollisionDetectionMode = this.CollisionDetectionMode; this.spawnedObject.AddComponent <AntiTouchObject>(); AutoHide.AddComponent(this.spawnedObject, this.destroyTime); return(this.spawnedObject); }
// Token: 0x06000484 RID: 1156 RVA: 0x00018AFC File Offset: 0x00016CFC private GameObject SpawnCar() { this.spawnedObject = UnityEngine.Object.Instantiate <GameObject>(this.carPrefab, base.transform.position, base.transform.rotation); this.carControls = this.spawnedObject.GetComponentInChildren <VehicleCarController>(); if (this.driveToPlayer) { this.carControls.driveToTarget = true; this.carControls.targetIsPlayer = true; } this.carControls.autoDrive = true; AutoHide.AddComponent(this.spawnedObject, this.destroyTime); return(this.spawnedObject); }
// Token: 0x06000417 RID: 1047 RVA: 0x00017C38 File Offset: 0x00015E38 private void CreatePool() { for (int i = 0; i < this.maxCars; i++) { this.car = UnityEngine.Object.Instantiate <GameObject>(this.carPrefab, base.transform.position, Quaternion.Euler(base.transform.eulerAngles.x, base.transform.eulerAngles.y + UnityEngine.Random.Range(-5f, 5f), base.transform.eulerAngles.z)); this.pool.Add(this.car); AutoHide.AddComponent(this.car, (float)this.timeAlive); this.carControls = this.car.GetComponentInChildren <VehicleCarController>(); this.carControls.autoDrive = true; this.carControls.autoMotor = this.vehicleSpeed; this.car.SetActive(false); } }