diff --git a/Assets/Scripts/Item/Pistol/PistolComponent.cs b/Assets/Scripts/Item/Pistol/PistolComponent.cs index 33d5421..7743c95 100644 --- a/Assets/Scripts/Item/Pistol/PistolComponent.cs +++ b/Assets/Scripts/Item/Pistol/PistolComponent.cs @@ -48,14 +48,14 @@ namespace Item private GameObject targetObject; private float timeSinceLightDuration; public bool IsLightOn => targetingLight.gameObject.activeSelf; - + //private Dictionary projectiles = new Dictionary(); - + // Start is called before the first frame update private void Start() { - + } // Update is called once per frame @@ -132,21 +132,20 @@ namespace Item [ServerRpc] private void SpawnBullet(GameObject projectile) { - InstanceFinder.ServerManager.Spawn(projectile); - + } public void Fire(bool offsetWithTargetBall) { shootLightDuration = 0; shootLight.gameObject.SetActive(true); - + var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); SpawnBullet(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); - + //InstanceFinder.ServerManager.Spawn(projectile);