// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.UpArrow) && (AmmoManager.GetAmmoCount() > 0)) { Instantiate(Projectile, FirePoint.position, FirePoint.rotation); AmmoManager.AddAmmo(-1); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.UpArrow) && (AmmoManager.GetAmmoCount() > 0)) { Instantiate(Projectile, FirePoint.position, FirePoint.rotation); AmmoManager.AddAmmo(-1); } }