Question by 
               MouldySamuel · Apr 26, 2018 at 06:06 PM · 
                gameobjectgame  
              
 
              InvalidOperationException: Operation is not valid due to the current state of the object unity
 InvalidOperationException: Operation is not valid due to the current state of the object
 System.Linq.Enumerable.First[WeaponAnimation] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback)
 System.Linq.Enumerable.First[WeaponAnimation] (IEnumerable`1 source, System.Func`2 predicate)
 PlayerAnimator.OnEquipmentChanged (.Equipment newItem, .Equipment oldItem) (at Assets/Scripts/Anim/PlayerAnimator.cs:45)
 EquipmentManager.Equip (.Equipment newItem) (at Assets/Scripts/Items/EquipmentManager.cs:85)
 Equipment.Use () (at Assets/Scripts/Items/Equipment.cs:16)
 InventorySlot.UseItem () (at Assets/Scripts/Inventory/InventorySlot.cs:46)
 UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:165)
 UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:58)
 UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:36)
 UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:45)
 UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50)
 UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
 UnityEngine.EventSystems.EventSystem:Update()
This error occurs when I try to equip a pickaxe in place of a sword.
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Prevent gameobject go off screen 0 Answers
Hi. I'm trying to make an extremely simple game. 0 Answers
Problem with game animation for gameobject movement 0 Answers
Making a gameobject follow a player closely 1 Answer
Input Command Issues 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                