IEnumerator delayedInspectEndActions(bool separateTrayItems = false, float time = Misc.DEFAULT_ANIMATION_TIME, bool reverse = false) { yield return(new WaitForSeconds(time)); switchToGameCamera(reverse); PubSub.publish("inspect_inactive"); Debug.Log("BAG_OPEN - " + System.DateTime.Now.Millisecond); bagInspectState = BagInspectState.BAG_OPEN; if (separateTrayItems) { currentBagInspect.separateTrayItems(); } }