// Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0) && (lastFireTime + fireRate) < Time.time) { bulletpool.FireBullet(); lastFireTime = Time.time; } }
void OnFire(Plane plane) { bulletPool.FireBullet(plane.transform, plane.planeData.bulletSpeed, plane.planeData.bulletStrength); }