public Animation CreateAnimation() { Animation tmp = new Animation(Renderer.Singleton.Game); tmp.LoadTex(Renderer.Singleton.Content.Load<Texture2D>(TextureName)); tmp.SetProperties(FrameSize, TimePerFrame, NoFrames); return tmp; }
public void CreateAnimation(string name, Vector2 FrameSize, float TimePerFrame, int NoFrames, Texture2D Tex) { Animation a = new Animation(Game); a.LoadTex(Tex); a.SetProperties(FrameSize, TimePerFrame, NoFrames); Animations.Add(name, a); }