After suicide, an error appears:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
bl_GameManager.FindActor (Photon.Realtime.Player player) (at Assets/MFPS/Scripts/Network/Room/bl_GameManager.cs:574)
bl_KillCam.SetTarget (Photon.Realtime.Player view, DamageCause cause, System.String killer, UnityEngine.Transform secureTarget) (at Assets/MFPS/Scripts/Misc/Camera/bl_KillCam.cs:135)
bl_PlayerHealthManager.Die (System.String killer, System.Boolean isHeadshot, DamageCause cause, System.Int32 gunID, UnityEngine.Vector3 hitPos, Photon.Realtime.Player sender) (at Assets/MFPS/Scripts/Player/Health/bl_PlayerHealthManager.cs:320)
bl_PlayerHealthManager.SyncDamage (System.Int32 damage, System.String killer, DamageCause cause, UnityEngine.Vector3 m_direction, System.Boolean isHeatShot, System.Int32 weaponID, Photon.Realtime.Player m_sender) (at Assets/MFPS/Scripts/Player/Health/bl_PlayerHealthManager.cs:250)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fb001e01371b4adca20013e0ac763896>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <fb001e01371b4adca20013e0ac763896>:0)
Photon.Pun.PhotonNetwork.ExecuteRpc (ExitGames.Client.Photon.Hashtable rpcData, Photon.Realtime.Player sender) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:514)
Photon.Pun.PhotonNetwork.RPC (Photon.Pun.PhotonView view, System.String methodName, Photon.Pun.RpcTarget target, Photon.Realtime.Player player, System.Boolean encrypt, System.Object[] parameters) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1149)
Photon.Pun.PhotonNetwork.RPC (Photon.Pun.PhotonView view, System.String methodName, Photon.Pun.RpcTarget target, System.Boolean encrypt, System.Object[] parameters) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2797)
Photon.Pun.PhotonView.RPC (System.String methodName, Photon.Pun.RpcTarget target, System.Object[] parameters) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:411)
bl_PlayerHealthManager.GetDamage (DamageData e) (at Assets/MFPS/Scripts/Player/Health/bl_PlayerHealthManager.cs:167)
bl_PlayerHealthManager.Suicide () (at Assets/MFPS/Scripts/Player/Health/bl_PlayerHealthManager.cs:511)
bl_RoomMenu.Suicide () (at Assets/MFPS/Scripts/GamePlay/Level/bl_RoomMenu.cs:317)
bl_UIReferences.Suicide () (at Assets/MFPS/Scripts/UI/Banks/bl_UIReferences.cs:602)