Пример #1
0
        public void Init(Sprite _sprite, string initani, Texture.TextureMgr _tmgr)
        {
            tmgr   = _tmgr;
            sprite = _sprite;
            var drawani = SpriteAniMgr.CreateAni(sprite, initani, tmgr);

            controller = new SpriteAniController(drawani.GetElement(null));
        }
Пример #2
0
        public void DrawSprite(SpriteAni ani, Vector2 pos)
        {
            SpriteAniController con = new SpriteAniController(ani.GetElement(null));

            con.bplay = true;

            anis.Add(pos, con);
            //anis.Add(ani);
        }
Пример #3
0
        public void DrawSprite(SpriteAni ani,Vector2 pos)
        {
            SpriteAniController con = new SpriteAniController(ani.GetElement(null));
            con.bplay = true;

            anis.Add(pos, con);
            //anis.Add(ani);
        }
Пример #4
0
 public BGLayerSingleAni(SpriteAniController ani)
 {
     block=new BGBlock(ani);
     scrollspeed = 1.0f;
 }
Пример #5
0
 public BGBlock(SpriteAniController _ani)
 {
     ani = _ani;
 }
Пример #6
0
 public BGLayerSingleAni(SpriteAniController ani)
 {
     block       = new BGBlock(ani);
     scrollspeed = 1.0f;
 }
Пример #7
0
 public BGBlock(SpriteAniController _ani)
 {
     ani = _ani;
 }