fixed disconnecting
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user