This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class GunSprint : MonoBehaviour { | |
[SerializeField] private Bullet _bulletPrefab; | |
[SerializeField] private Transform _spawnPoint; | |
[SerializeField] private ParticleSystem _smokeSystem; | |
[SerializeField] private LayerMask _targetLayer; | |
[SerializeField] private float _bulletSpeed = 12; | |
[SerializeField] private float _torque = 120; |