fixed disconnecting

This commit is contained in:
Sewmina Dilshan
2021-08-23 23:23:20 +05:30
parent bf90768508
commit b03c2150d4
39 changed files with 3259 additions and 2910 deletions

View File

@@ -449,7 +449,10 @@ public class netPlayer : NetworkBehaviour
SurfaceManager.SpawnEffect(0, SurfaceEffects.BulletHit , 1f,hitPoint,Quaternion.LookRotation(hitNormals));
//shootingEffects
guns[curGunIndex].triggerMuzzleFlash();
if (curGunIndex > 0)
{
guns[curGunIndex].triggerMuzzleFlash();
}
Debug.Log("Broadcasting shot");
// weaponAnim.CrossFade("shot",0.1f);
}