Пример #1
0
    void OnInputClicked(string controlName, int data)
    {
        Debug.Log("OnInputClicked:" + " controlName:" + controlName + " data:" + data);

        if (customProfileCharacters == null)
        {
            customProfileCharacters = GetComponentInChildren <UICustomizeProfileCharacters>();
        }

        if (customProfileCharacters == null)
        {
            return;
        }

        if (customProfileCharacters.inputCurrentDisplayName != null &&
            controlName == customProfileCharacters.inputCurrentDisplayName.name)
        {
            GameUIPanelHeader.CharacterLargeZoomIn();
            GameUIPanelHeader.CharacterLargeShowBack();
        }
        else if (customProfileCharacters.inputCurrentDisplayCode != null &&
                 controlName == customProfileCharacters.inputCurrentDisplayCode.name)
        {
            GameUIPanelHeader.CharacterLargeZoomIn();
            GameUIPanelHeader.CharacterLargeShowFront();
        }
    }
Пример #2
0
    // PANEL SECTIONS STATES


    public void HandleCharacterDisplay()
    {
        // handle character display

        if (characterDisplayState ==
            UIPanelCharacterDisplayState.Character)
        {
            GameUIPanelHeader.ShowCharacter();
        }
        else if (characterDisplayState ==
                 UIPanelCharacterDisplayState.CharacterLarge)
        {
            GameUIPanelHeader.ShowCharacterLarge();
        }
    }