public void Initialize(Texture2D texture) { //set texture PlayerTexture = texture; //set state Active = true; //set health Health = 100; sprite = new BasicSprite(graphics.GraphicsDevice, Position, spriteEffect, PlayerTexture); }
public void LoadSprite(BasicSprite sprite) { sprites.Add(sprite); }