示例#1
0
        public void DoPlayBack(TimeFrame timeFrame)
        {
            AriesTimeFrame frame = (AriesTimeFrame)timeFrame;

            transform.position    = frame.m_pos;
            m_rigid.velocity      = frame.m_velocity;
            m_spriteRender.flipX  = frame.m_isFlipX;
            m_spriteRender.sprite = frame.m_spriteFrame;
        }
示例#2
0
        public TimeFrame DoRecord()
        {
            AriesTimeFrame frame = new AriesTimeFrame();

            frame.m_pos         = transform.position;
            frame.m_velocity    = m_rigid.velocity;
            frame.m_isFlipX     = m_spriteRender.flipX;
            frame.m_spriteFrame = m_spriteRender.sprite;
            return(frame);
        }