Пример #1
0
        private void AttachActor(LevelBase level, IGraphNodeGroup nodeGroup)
        {
            Debug.Assert(level != null);

            nodeGroup.BhvOnEnter();
            level.AttachChild(nodeGroup);
        }
Пример #2
0
    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();
        }
    }