void OnPauseRoutineEnd(bool isPaused, float routineTime) { if (isPaused) { UIManager.ShowUI(mainMenuBasePage, true, true); } else { UIManager.HideUI(mainMenuBasePage); } }
void BeginClose(UIType type, UIElementHolder uiHolder) { UIManager.HideUI(uiHolder); for (int i = 0; i < inventoryButtonsPerInventory.Length; i++) { inventoryButtonsPerInventory[i] = null; } for (int i = 0; i < currentPaginatedOffsets.Length; i++) { currentPaginatedOffsets[i] = 0; } BroadcastUIClose(type); currentLinkedInventory = null; }
// void OnInspectStart (Interactor interactor, Interactable interactable) { // } // void OnInspectEnd (Interactor interactor, Interactable interactable) { // } void OnEnable() { // VRManager.onUISelection += OnUISelection; // UIManager.onUISelect += OnUISelection; GameManager.onPauseRoutineStart += OnGamePaused; for (int i = 0; i < uiTypesCount; i++) { Type2UI((UIType)i).onBaseCancel += Type2Close((UIType)i); } // quickInventory.onBaseCancel += CloseQuickInventory; // normalInventory.onBaseCancel += CloseNormalInventory; inventory.onStash += OnStash; inventory.onDrop += OnDrop; inventory.onEquip += OnEquip; inventory.onUnequip += OnUnequip; inventory.onTradeStart += OnTradeStart; inventory.onQuickTradeStart += OnQuickTradeStart; inventory.onQuickTradeEnd += OnQuickTradeEnd; // GetComponent<Interactor>().onInspectStart += OnInspectStart; // GetComponent<Interactor>().onInspectEnd += OnInspectEnd; for (int i = 0; i < uiTypesCount; i++) { UIManager.HideUI(Type2UI((UIType)i)); } // UIManager.HideUI(quickInventory); // UIManager.HideUI(normalInventory); // UIManager.HideUI(quickTrade); // UIManager.HideUI(normalTrade); }