예제 #1
0
 public override void Shoot()
 {
     if (Time.time > fireCount)
     {
         fireCount = Time.time + fireRate;
         bulletPooler.CreateBullet();
     }
 }
예제 #2
0
 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();
     }
 }