void Start() { bulletRender = transform.Find("Bullet").GetComponent<SpriteRenderer>(); secondaryShootsUI = GameObject.Find("SecondaryShootsShotGunUI").GetComponent<UIBulletsShotGun>(); secondaryShootsUI.disableBullet(UIBulletsShotGun.CurrentBullets - 1); SoundManager.Instance.PlaySecondaryEffect("shootShotgunBigShot", 0.3f); MovingShot(); }
void Awake() => secondaryShootsUI = GameObject.Find("SecondaryShootsShotGunUI").GetComponent <UIBulletsShotGun>();