Exemplo n.º 1
0
 public void sendResetAmmoMP()
 {
     if (BoltNetwork.isRunning)
     {
         RockThrowerResetAmmo rockThrowerResetAmmo = RockThrowerResetAmmo.Create(GlobalTargets.Everyone);
         rockThrowerResetAmmo.Target = base.entity;
         rockThrowerResetAmmo.Send();
     }
     else
     {
         this.resetBasketAmmo();
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }
Exemplo n.º 3
0
 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);
         }
     }
 }