// Token: 0x06003769 RID: 14185 RVA: 0x000C6624 File Offset: 0x000C4824 public void Ignite(global::ViewModel vm, global::ItemRepresentation itemRep, global::ITorchItem torchItem) { if (torchItem != null) { torchItem.Ignite(); } bool flag = vm != null; if (flag) { this.StrikeSound.Play(); GameObject light = vm.socketMap["muzzle"].socket.InstantiateAsChild(this.FirstPersonLightPrefab, false); if (torchItem != null) { torchItem.light = light; } } else if ((torchItem == null || !torchItem.light) && (!itemRep.networkView.isMine || global::actor.forceThirdPerson)) { if (this.ThirdPersonLightPrefab) { ((global::TorchItemRep)itemRep)._myLightPrefab = this.ThirdPersonLightPrefab; } ((global::TorchItemRep)itemRep).RepIgnite(); if (((global::TorchItemRep)itemRep)._myLight && torchItem != null) { torchItem.light = ((global::TorchItemRep)itemRep)._myLight; } } }
// Token: 0x06003761 RID: 14177 RVA: 0x000C6454 File Offset: 0x000C4654 public override void PrimaryAttack(global::ViewModel vm, global::ItemRepresentation itemRep, global::IThrowableItem itemInstance, ref global::HumanController.InputSample sample) { global::ITorchItem torchInstance = this.GetTorchInstance(itemInstance); if (torchInstance.isLit) { return; } if (vm) { vm.Play("ignite"); } torchInstance.realIgniteTime = Time.time + 0.8f; torchInstance.nextPrimaryAttackTime = Time.time + 1.5f; torchInstance.nextSecondaryAttackTime = Time.time + 1.5f; }
// Token: 0x06003768 RID: 14184 RVA: 0x000C6620 File Offset: 0x000C4820 public void OnExtinguish(global::ViewModel vm, global::ItemRepresentation itemRep, global::ITorchItem torchItem) { }