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

@@ -5373,6 +5373,11 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2908801618872429233, guid: e8cb5ea9702d38442b320009f6692c76,
type: 3}
propertyPath: networkAddress
value: 161.97.127.136
objectReference: {fileID: 0}
- target: {fileID: 2908801618872429235, guid: e8cb5ea9702d38442b320009f6692c76,
type: 3}
propertyPath: m_Name
@@ -7954,7 +7959,7 @@ PrefabInstance:
- target: {fileID: 7304314973299916039, guid: 539f4068676c23742a9f18a27fe6a162,
type: 3}
propertyPath: m_LocalPosition.z
value: 20.46
value: 25.19
objectReference: {fileID: 0}
- target: {fileID: 7304314973326372255, guid: 539f4068676c23742a9f18a27fe6a162,
type: 3}
@@ -7964,7 +7969,7 @@ PrefabInstance:
- target: {fileID: 7304314973326372255, guid: 539f4068676c23742a9f18a27fe6a162,
type: 3}
propertyPath: m_LocalPosition.z
value: 0.82
value: 57.35
objectReference: {fileID: 0}
- target: {fileID: 7304314973356559405, guid: 539f4068676c23742a9f18a27fe6a162,
type: 3}
@@ -8014,7 +8019,7 @@ PrefabInstance:
- target: {fileID: 7304314974395938094, guid: 539f4068676c23742a9f18a27fe6a162,
type: 3}
propertyPath: m_LocalPosition.z
value: 9.38
value: 36.48
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 539f4068676c23742a9f18a27fe6a162, type: 3}

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);
}