Beispiel #1
0
    public void Shoot()
    {
        muzzleFlash.Show();

        if (audioManager && audioName != "")
        {
            audioManager.PlaySound(audioName);
        }

        CameraController.instance.Shake(.15f, .1f);
        ObjectPooler.instance.GetFromPool(shooterType == ShooterType.Enemy ? Constants.bulletPoolTagE : Constants.bulletPoolTagP, shotPoint.position, shotPoint.rotation);
    }