Beispiel #1
0
 public void SetTexture(anim_size_offset ani, Texture2D tex)
 {
     texture = tex;
 }
Beispiel #2
0
 public void AssignSpriteToRenderer(anim_size_offset anim, Texture2D tex, ushort texturePos)
 {
     renderer.SetTexture(anim, tex);
     renderer.spriteSize   = new Point(20, 20);
     renderer.spriteOffset = new Point(20 * texturePos, 0);
 }