示例#1
0
    void Start()
    {
        m_characterInfomation     = CharacterInfoManager.instance.m_playerInfo; // 캐릭터 정보를 받아온다.
        m_UserNameText.text       = m_characterInfomation.m_strUserName;        // 유저 닉네임 표시
        m_LevelText.text          = m_characterInfomation.m_iLevel.ToString();
        m_expPercdentSlider.value = ((float)m_characterInfomation.m_iCurExp / (float)m_characterInfomation.m_iMaxExp);
        m_jamCountText.text       = m_characterInfomation.m_iJam.ToString();
        m_goldCountText.text      = m_characterInfomation.m_iGold.ToString();

        if (m_characterInfomation.m_eCharacterType == CHARACTER_TYPE.UNITY)         // 캐릭터 타입을 받아와서
        {
            m_characterMiniIcon.spriteName = "UnityChan1";                          // 해당 캐릭터 아이콘 표시
            m_strCharacterName             = "UnityChan";
        }
        if (m_characterInfomation.m_eCharacterType == CHARACTER_TYPE.AKAZA)         // 캐릭터 타입을 받아와서
        {
            m_characterMiniIcon.spriteName = "Akaza1";                              // 해당 캐릭터 아이콘 표시
            m_strCharacterName             = "Akaza";
        }

        m_infomationText.text = m_characterInfomation.m_strUserName + "\n\n" + m_strCharacterName + "\n\n" + m_characterInfomation.m_iLevel.ToString() + "\n\n" +
                                m_characterInfomation.m_iCurExp.ToString() + "/" + m_characterInfomation.m_iMaxExp.ToString() + "\n\n" + m_characterInfomation.m_iMaxHp.ToString();

        m_statusText.text = m_characterInfomation.m_iStr.ToString() + " (+" + m_characterInfomation.m_iWeaponStr.ToString() + ")\n\n" +
                            m_characterInfomation.m_iDef.ToString() + " (+" + m_characterInfomation.m_iArmorDef.ToString() + ")";
    }
示例#2
0
    void Start()
    {
        m_characterInfomation = CharacterInfoManager.instance.m_playerInfo;   // 캐릭터 정보를 받아온다.

        m_characterInfomationMenu = GameObject.Find("ItemWindow").transform.Find("InfomationUI").gameObject;
        m_shopMenu      = GameObject.Find("ItemWindow").transform.Find("ShopUI").gameObject;
        m_optionMenu    = GameObject.Find("ItemWindow").transform.Find("OptionUI").gameObject;
        m_inventoryMenu = GameObject.Find("ItemWindow").transform.Find("InventoryUI").gameObject;

        if (m_characterInfomation.m_eCharacterType == CHARACTER_TYPE.UNITY)         // 캐릭터 타입을 받아와서
        {
            createLobbyCharacter(CHARACTER_TYPE.UNITY);                             // 캐릭터 프리팹 생성
        }
        if (m_characterInfomation.m_eCharacterType == CHARACTER_TYPE.AKAZA)         // 캐릭터 타입을 받아와서
        {
            createLobbyCharacter(CHARACTER_TYPE.AKAZA);                             // 캐릭터 프리팹 생성
        }
    }