From 0779b443ff3911f738fcaf83f14c85ffcc09f0c3 Mon Sep 17 00:00:00 2001 From: sebastianhampel1 Date: Thu, 15 Jun 2023 12:49:37 -0400 Subject: [PATCH] Update PistolComponent.cs --- Assets/Scripts/Item/Pistol/PistolComponent.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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);