public void Update(GameTime Time) { if (HasFore) if (ForeAnimation != null) ForeAnimation.Update(Time); else if (Mod.Fore[Fore].Frames > 0) ForeAnimation = new Animation(("Tiles.Fore." + Fore + "-"), Mod.Fore[Fore].Frames, true, Mod.Fore[Fore].Speed); if (HasBack) if (BackAnimation != null) BackAnimation.Update(Time); else if (Mod.Back[Back].Frames > 0) BackAnimation = new Animation(("Tiles.Back." + Back + "-"), Mod.Back[Back].Frames, true, Mod.Back[Back].Speed); }
public Nyan_Button() { Position = new Vector2((Screen.ViewportWidth / 2f), (Screen.ViewportHeight / 2f)); Mask = new Rectangle((int)(Position.X - 100), (int)(Position.Y - 50), 200, 100); Animation = new Animation("Nyan.Normal", 6, true, .08f); }
public Object(Animation Animation) { this.Animation = Animation; }