//Need to set velocity, damage and destroy animation void Start() { bulletRender = transform.Find("Bullet").GetComponent <SpriteRenderer>(); if (!IsMenuSecondaryShoot) { explosionParticles = transform.Find("Explosion").GetComponentsInChildren <ParticleSystem>(); StopExplosion(); secondaryShootsUI = GameObject.Find("SecondaryShootsUI").GetComponent <UIBullets>(); restBullet(); SoundManager.Instance.PlaySecondaryEffect("shootSecondary", 0f); } MovingShot(); }
void Awake() => secondaryShootsUI = GameObject.Find("SecondaryShootsUI").GetComponent <UIBullets>();