Beispiel #1
0
        public void AddHairTexture(string textpath)
        {
            var texture = ContentExt.LoadTexture2D(textpath);

            foreach (var item in _animation)
            {
                item.Value.Hair = texture;
            }
        }
Beispiel #2
0
 public Sprite(string texturePath) : this(ContentExt.LoadTexture2D(texturePath))
 {
 }
 public void AddSkin(string skinName)
 {
     _skinTexture.Add(skinName, ContentExt.LoadTexture2D("UI\\Skin\\" + skinName));
 }