public override void Shoot() { if (Time.time > fireCount) { fireCount = Time.time + fireRate; bulletPooler.CreateBullet(); } }
public override void Shoot() { if (Time.time > fireCount) { fireCount = Time.time + fireRate; Debug.DrawLine(transform.position, GameManager.Instance.Player.position, Color.green); Debug.Log("Shooting to player"); bulletPooler.CreateBullet(); } }