public void EndCharge() { if (_chargeShotTransform != null) { ChargedShotBehaviour behaviour = _chargeShotTransform.GetComponent <ChargedShotBehaviour>(); behaviour.HasShot = true; // TODO -- Stop Sound _chargeShotTransform = null; ammoCount.Take1Ammo(currentWeapon); CheckAmmo(); soundController.Stop(); } }
// Start is called before the first frame update void Start() { chargedShot = GetComponent <ChargedShotBehaviour>(); audioSource = GetComponent <AudioSource>(); }