bool Shoot(Vector3 direction) { GameObject projectile = _objectPooler.SpawnFromPool("projectiles"); ProjectileBehaviour projectileBehaviour = projectile.GetComponent <ProjectileBehaviour>(); projectileBehaviour.SetProjectile(transform.position - new Vector3(0, 2, 0), direction, fireSpeed, 800.0f, damage, gameObject); return(true); }