Weapon issue
Posted: Sun Nov 28, 2021 4:57 am
NullReferenceException: Object reference not set to an instance of an object
bl_GunManager+<ChangeGun>d__54.MoveNext () (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:457)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <127e81e1cb3441cc97d26b1910daae77>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
bl_GunManager:ChangeCurrentWeaponTo(Int32) (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:445)
bl_GunManager:InputManagerControll() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:710)
bl_GunManager:InputControl() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:238)
bl_GunManager:OnUpdate() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:192)
MFPS.Internal.bl_UpdateManager:Update() (at Assets/MFPS/Scripts/Internal/General/bl_UpdateManager.cs:184)
What to do?
bl_GunManager+<ChangeGun>d__54.MoveNext () (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:457)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <127e81e1cb3441cc97d26b1910daae77>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
bl_GunManager:ChangeCurrentWeaponTo(Int32) (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:445)
bl_GunManager:InputManagerControll() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:710)
bl_GunManager:InputControl() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:238)
bl_GunManager:OnUpdate() (at Assets/MFPS/Scripts/Weapon/Main/bl_GunManager.cs:192)
MFPS.Internal.bl_UpdateManager:Update() (at Assets/MFPS/Scripts/Internal/General/bl_UpdateManager.cs:184)
What to do?