Exemple #1
0
        private void AttachActor(LevelBase level, IGraphNodeGroup nodeGroup)
        {
            Debug.Assert(level != null);

            nodeGroup.BhvOnEnter();
            level.AttachChild(nodeGroup);
        }
    public void CreateWorld()
    {
        m_worldLevel = new WorldLevel();

        if (m_worldLevel != null)
        {
            m_worldLevel.CreateFirstLevel();
        }

        m_rootNodeGroup = m_worldLevel;

        if (m_rootNodeGroup != null)
        {
            m_rootNodeGroup.BhvOnEnter();
        }
    }