Beispiel #1
0
    //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();
    }
Beispiel #2
0
 void Awake() => secondaryShootsUI = GameObject.Find("SecondaryShootsUI").GetComponent <UIBullets>();