示例#1
0
    void InitCharacter()
    {
        pe_Team team_id = m_StageInfo.TeamID;

        m_TeamData = TeamDataManager.Instance.GetTeam(team_id);

        if (m_TeamData == null)
        {
            m_TeamData = new TeamData(m_StageInfo.TeamID, null);
            TeamDataManager.Instance.AddTeam(m_TeamData, Tutorial.Instance.Completed);
            m_TeamDataBackup = null;
        }
        else
        {
            m_TeamDataBackup = m_TeamData.Clone();
        }

        m_MainLayout.Init(m_TeamData);

        m_LeaderSkill.Init(m_TeamData.LeaderCreature, m_TeamData.UseLeaderSkillType, OnLeaderSkill);
        //OnChangedLeaderSkillChanged(m_TeamData!=null?m_TeamData.LeaderCreature:null);


        UpdateCharacterInfo(false);
    }