Exemplo n.º 1
0
 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);
         }
     }
 }