コード例 #1
0
    public void ToggleCharacterSection(bool checkmarked)
    {
        if (characterSection != null)
        {
            characterSection.SetActive(checkmarked);
        }

        if (checkmarked == false)
        {
            characterUI.CloseSection();
        }
        else if (currentSection == Section.Character)
        {
            // do nothing
        }
        else if (checkmarked == true)
        {
            CameraController.Instance.SetCharacterSectionView();
            currentSection = Section.Character;
            tabsSwitcher.ToggleCharacterUI();
            characterUI.OpenSection();
        }

        RefreshUI();
    }