private void Fire() { Vector3 temp = MyController.MyCam.gameObject.transform.forward * Projectile.GetComponent <Bullet>().speed; MyController.SendCommand("FIRE", BulletSpawn.position.x.ToString() + ',' + BulletSpawn.position.y.ToString() + ',' + BulletSpawn.position.z.ToString() + ',' + temp.x + ',' + temp.y + ',' + temp.z); CurrentAmmo--; CanShoot = false; StartCoroutine(FireDelay()); if (MyController.IsLocalPlayer) { MyController.AmmoPanel.transform.GetChild(1).GetComponent <Text>().text = CurrentAmmo.ToString(); } }