public void ToggleLocationSection(bool checkmarked) { locationSection.SetActive(checkmarked); if (checkmarked == true) { CameraController.Instance.SetLocationSectionView(); currentSection = Section.Location; tabsSwitcher.ToggleLocationUI(); locationUI.OpenSection(); } else { locationUI.CloseSection(); } RefreshUI(); }
public void ToggleLocationSection(bool checkmarked) { if (locationSection != null) { locationSection.SetActive(checkmarked); } if (checkmarked == false) { locationUI.CloseSection(); } else if (currentSection == Section.Location) { // do nothing } else if (checkmarked == true) { CameraController.Instance.SetLocationSectionView(); currentSection = Section.Location; tabsSwitcher.ToggleLocationUI(); locationUI.OpenSection(); } RefreshUI(); }