public void SetExploring() { currentGamemode = Gamemode.Exploring; deathCanvas.SetActive(false); segueCanvas.SetActive(false); referenceManager.player.GetComponent <PlayerMover>().enabled = true; if (GlobalControls.globalControlsProperties.Contains("metersEnabled")) { referenceManager.metersCanvas.SetActive(true); } else if (!GlobalControls.globalControlsProperties.Contains("metersEnabled")) { referenceManager.metersCanvas.SetActive(false); } referenceManager.dialogueCanvas.SetActive(false); referenceManager.tradeCanvas.SetActive(false); if (GlobalControls.globalControlsProperties.Contains("objectivesEnabled")) { tooltipManager.SetObjectivesActive(); referenceManager.objectiveManager.UpdateObjectiveBanner(); } else if (!GlobalControls.globalControlsProperties.Contains("objectivesEnabled")) { tooltipManager.SetObjectivesInactive(); } if (GlobalControls.globalControlsProperties.Contains("tooltipsEnabled")) { tooltipManager.SetTooltipsActive(); } else if (!GlobalControls.globalControlsProperties.Contains("tooltipsEnabled")) { tooltipManager.SetTooltipsInactive(); } if (inventoryInScene) { referenceManager.tooltipCanvas.SetActive(true); referenceManager.inventoryCanvas.SetActive(true); keyboardManager.SetCursorLocation(0); //Update to show Inventory selected inventoryUI.EnableSelectedSlot(); inventory.SelectSlotNumber(0); } if (pointsInScene) { referenceManager.pointsText.gameObject.SetActive(true); referenceManager.pointsText.GetComponentInChildren <Text>().text = GlobalControls.currentPoints.ToString(); } else if (!pointsInScene) { referenceManager.pointsText.gameObject.SetActive(false); } if (npcInteractedInScene) { keyboardManager.EnableNPCInteracted(); } else { referenceManager.npcInteractedCanvas.SetActive(false); } tooltipManager.SetNPCInventoryTooltipInactive(); if (GlobalControls.globalControlsProperties.Contains("keybindsEnabled")) { referenceManager.keybinds.SetActive(true); string exploringText = GlobalControls.keybinds["Exploring"]; if (!npcInteractedInScene) { exploringText = exploringText.Replace("\n[ ] => Switch inventory", ""); } if (inventoryInScene) { Image[] images = inventory.gameObject.GetComponentsInChildren <Image>(true); foreach (Image image in images) { if (image.gameObject.name.Equals("Frame 1") && !image.gameObject.activeSelf) { exploringText = exploringText.Replace("\n< > => Move slots", ""); break; } } } referenceManager.keybinds.GetComponentInChildren <Text>().text = exploringText; } else if (GlobalControls.globalControlsProperties.Contains("keybindsEnabled")) { referenceManager.keybinds.SetActive(false); } }