Exemple #1
0
    private bool LoadLinearPosControllerChunk()
    {
        int keyCount = m_chunkReader.ReadInt();

        m_currentAnimationController = new ShapeAnimationController(keyCount, true, false);
        var controllers = m_currentAnimationNode.Controllers != null ? new List <ShapeAnimationController>(m_currentAnimationNode.Controllers) : new List <ShapeAnimationController>();

        controllers.Add(m_currentAnimationController);
        m_currentAnimationNode.Controllers = controllers.ToArray();
        m_keyFrameIndex = 0;
        for (int k = 0; k < keyCount; k++)
        {
            LoadChunk();
        }

        m_currentAnimationController = null;
        return(true);
    }
Exemple #2
0
    private bool LoadTCBRotControllerChunk()
    {
        int keyCount = m_chunkReader.ReadInt();

        m_currentAnimationController = new ShapeAnimationController(keyCount, false, true);
        var controllers = m_currentAnimationNode.Controllers != null ? new List <ShapeAnimationController>(m_currentAnimationNode.Controllers) : new List <ShapeAnimationController>();

        controllers.Add(m_currentAnimationController);
        m_currentAnimationNode.Controllers = controllers.ToArray();
        m_keyFrameIndex = 0;
//			Console.WriteLine("Start of TCB controller");
        for (int k = 0; k < keyCount; k++)
        {
            LoadChunk();
        }

        m_currentAnimationController = null;
        return(true);
    }