// Selecting the nearest LC in an N,E,S or W direction from the ExploreScreen public void ShiftSelectedContainer(LocationContainer cont) { if (selectedContainer != null) { selectedContainer.RemoveSelectHighlight(); } selectedContainer = cont; selectedContainer.SelectHighlight(); LocationController.Instance.SetSelectedLocation(selectedContainer.GetContainedLocation()); UIController.Instance.RefreshUI(); }
public void ClickContainer(LocationContainer cont) { if (UIController.Instance.IsContentInteractionAllowed() == true) { if (cont == selectedContainer && UIController.Instance.worldUI.explorePanelActive == true) { UIController.Instance.worldUI.CloseExplorePanel(); } else { if (selectedContainer != null) { selectedContainer.RemoveSelectHighlight(); } selectedContainer = cont; selectedContainer.SelectHighlight(); LocationController.Instance.SetSelectedLocation(selectedContainer.GetContainedLocation()); UIController.Instance.worldUI.OpenExplorePanel(); } } }