protected void SetTextureAnimationMap(TextureAnimationMap textureAnimationMap) { SetTextureMap(textureAnimationMap); foreach (var rec in textureAnimationMap.SourceRectangles) { SourceRectangles.Add(rec); } }
public override void LoadContent() { foreach (string key in textureKeys) { SetTextureMap(ContentProvider.LoadTexture(key)); SourceRectangles.Add(SourceRectangle.Value); } SourceRectangle = SourceRectangles.First(); }
public override void LoadContent() { for (int i = 1; i < 4; i++) { SetTextureMap(ContentProvider.LoadTexture("Bug" + i.ToString())); SourceRectangles.Add(SourceRectangle.Value); } SourceRectangle = SourceRectangles.First(); }
public override void LoadContent() { SetTextureMap(ContentProvider.LoadTexture("Wolf1")); SourceRectangles.Add(SourceRectangle.Value); SetTextureMap(ContentProvider.LoadTexture("Wolf2")); SourceRectangles.Add(SourceRectangle.Value); SourceRectangle = SourceRectangles.First(); }