Пример #1
0
    void syncSprite(tk2dAnimatedSprite sprite, float time)
    {
        if (sprite)
        {
            float sprite_time = sprite.getClipTime();

            if (time != sprite_time)
            {
                float playTime = time / sprite.CurrentClip.fps;
                sprite.Play(playTime);
            }
        }
    }