public void sendResetAmmoMP() { if (BoltNetwork.isRunning) { RockThrowerResetAmmo rockThrowerResetAmmo = RockThrowerResetAmmo.Create(GlobalTargets.Everyone); rockThrowerResetAmmo.Target = base.entity; rockThrowerResetAmmo.Send(); } else { this.resetBasketAmmo(); } }
public void sendResetAmmoMP() { if (BoltNetwork.isRunning) { RockThrowerResetAmmo rockThrowerResetAmmo = RockThrowerResetAmmo.Create(GlobalTargets.Everyone); rockThrowerResetAmmo.Target = base.entity; rockThrowerResetAmmo.Send(); } else { this.ammoLoaded = 0; this.am.ammoCount = 0; foreach (GameObject gameObject in this.am.rockAmmo) { gameObject.SetActive(false); } } }
public void sendResetAmmoMP() { if (BoltNetwork.isRunning) { RockThrowerResetAmmo rockThrowerResetAmmo = RockThrowerResetAmmo.Create(GlobalTargets.Everyone); rockThrowerResetAmmo.Target = this.entity; rockThrowerResetAmmo.Send(); } else { this.ammoLoaded = 0; this.am.ammoCount = 0; GameObject[] rockAmmo = this.am.rockAmmo; for (int i = 0; i < rockAmmo.Length; i++) { GameObject gameObject = rockAmmo[i]; gameObject.SetActive(false); } } }