Hi! Using Unity 5.5.2f1 and AC 1.56b
I have an inventory bar, click a button to leave it open and click the same button to hide it. Works great.
When I pick up an item and the inventory is open, there is this lag/delay before the item shows in the inventory. If I click in the inventory it'll make it show up. Is there a way to have picking up an item refresh the inventory menu so it shows up immediately?
Thanks!
Comments
Let's see the ActionList too. At what point is the Inventory: Add or remove Action used, and what are the ActionList's properties.
public void pickUp(int inventoryObject){
StartCoroutine(waitToPickUp(inventoryObject));
}
IEnumerator waitToPickUp(int inventoryObject){
yield return new WaitForSeconds(.75f);
KickStarter.runtimeInventory.Add(inventoryObject,1,false,-1);
sceneObject.SetActive(false);
}
PlayerMenus.ResetInventoryBoxes ();