Example #1
0
    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();
    }
Example #2
0
 void Awake() => secondaryShootsUI = GameObject.Find("SecondaryShootsShotGunUI").GetComponent <UIBulletsShotGun>();