private void UpdateInventoryButton() { if (!Input.GetButtonDown("Inventory")) { return; } if (playerCamera.IsCutSceneMoving) { return; } if (!inventory.IsInventoryModeOn) { if (!inventory.CanActivateInventoryMode) { return; } Messenger.Broadcast(Events.InventoryModeBeforeActivating); playerCamera.IsInventoryModeOn = true; inventory.ActivateInventoryMode(playerCamera.GetBackgroundTexture()); playerCamera.ActivateInventoryMode(); } else { inventory.OnInventorySwitchToNextItem(); } }