private void UpdateSprite()
        {
            if (!FrameChanged || Frames == null || CurrentFrame >= Frames.Length)
            {
                return;
            }

            var sprite = Frames[CurrentFrame].Sprite;

            if (sprite == null)
            {
                return;
            }

            FacingSpriteUtils.SetSpriteOnQuad(Renderer, SpriteSizeMode, InitialRendererScale, SpriteScale, sprite, false);

            FrameChanged = false;
        }
Exemple #2
0
 protected void SetSpriteOnRenderer(Sprite sprite, bool mirror)
 {
     //thunk!
     FacingSpriteUtils.SetSpriteOnQuad(Attachment, SpriteSizeMode, InitialRendererScale, SpriteScale, sprite, mirror);
 }