Ejemplo n.º 1
0
 public override void LoadContent(ContentManager content)
 {
     var reader = new TextureAtlasReader();
     Sprite = new Sprite(reader.Read(content.Load<Texture2D>(AssetName)))
     {
         OriginNormalized = new Vector2(0.5f, 0.5f)
     };
 }
Ejemplo n.º 2
0
        public override void LoadContent(ContentManager content)
        {
            var reader = new TextureAtlasReader();
            Sprite = new Sprite(reader.Read(content.Load<Texture2D>(AssetName)))
            {
                OriginNormalized = new Vector2(0.5f, 0.5f)
            };

            var reader2 = new AnimationSequenceReader();
            _animationSequenceList = reader2.Read(AssetName);
        }