private void Awake() { myTransform = transform; currentAmmo = MaxAmmo; currentReloadTime = 0; isShooting = false; currentReactionPercentage = 0; isHit = false; ReloadHUDScript.Instance.SetMaxAmmo(MaxAmmo); ReloadHUDScript.Instance.SetReloadTimePerBullet(ReloadTimePerBullet); gunRecoilAnimationPlayerScript = Gun.GetComponent<GunRecoilAnimationPlayerScript>(); }
private void Awake() { myTransform = transform; gunRecoilAnimationPlayerScript = Gun.GetComponent<GunRecoilAnimationPlayerScript>(); }