示例#1
0
 public Sprite(TextureRegion2D region) : base()
 {
     TextureRegion = region;
 }
 /// <summary>
 /// Sets the texture for the particle. This can be overridden to allow
 /// for an animated particle.
 /// </summary>
 /// <param name="texture">The texture to set.</param>
 public virtual void ApplyArt(TextureRegion2D texture)
 {
     TextureRegion = texture;
 }
示例#3
0
 public Sprite(Texture2D texture) : base()
 {
     TextureRegion = new TextureRegion2D(texture);
 }