void UpdateWoundup() { //Leave Wound up state when fire button is no longer being pressed if (!firingController.GetIsInvoking()) { TransitionToFiring(); } }
//Start swapping process. //Swapping is completed by: //Being over an item when swap is pressed (picking up the item) //Pressing fire while swap is pressed (throwing the item) //Releasing swap (swapping to the next item, or the appropriate item from the inventory wheel once implemented. public void StartSwap() { if (!firingController.GetIsInvoking()) //If fire already held, disable swapping { Item closestPickupItem = ClosestItemInReach(); if (closestPickupItem != null) { print("Pickup item found"); PickupItem(closestPickupItem); } else { isSwapping = true; itemWheel.LoadSpritesIntoIcons(inventory); itemWheel.ShowItemWheel(); } } }