コード例 #1
0
 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();
 }
コード例 #2
0
    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();
    }