Ejemplo n.º 1
0
    protected override void InitializeViews()
    {
        if (m_background != null && !m_background.Initialized)
        {
            m_background.Initialize();
        }

        if (m_header != null && !m_header.Initialized)
        {
            m_header.Initialize();
        }

        if (m_characterList != null && !m_characterList.Initialized)
        {
            m_characterList.Initialize();
        }

        if (m_defaultSection != null && !m_defaultSection.Initialized)
        {
            m_defaultSection.Initialize();
        }
    }
Ejemplo n.º 2
0
    protected override void CreateViews()
    {
        if (m_background == null)
        {
            m_background = new BackgroundSection();
            m_background.Initialize();
        }

        if (m_header == null)
        {
            m_header = new HeaderSection();
            m_header.Initialize();
        }

        if (m_characterList == null)
        {
            m_characterList = new CharacterListSection();
            m_characterList.Initialize();
        }

        if (m_createHolder == null)
        {
            m_createHolder = new CreateHolderSection();
            m_createHolder.Initialize();
        }

        if (m_characterCreation == null)
        {
            m_characterCreation = new CharacterCreationSection();
            m_characterCreation.Initialize();
        }

        if (m_defaultSection == null)
        {
            m_defaultSection = new DefaultSection();
            m_defaultSection.Initialize();
        }
    }