Esempio n. 1
0
 public void setAvatar(Status status)
 {
     Avatar.Clear();
     if (status == Status.idle)
     {
         for (int i = 0; i < Idle.Count; i++)
         {
             Avatar.Add(new Bitmap(Idle[i]));
         }
     }
     else if (status == Status.run)
     {
         for (int i = 0; i < Run.Count; i++)
         {
             Avatar.Add(new Bitmap(Run[i]));
         }
     }
     else if (status == Status.jump)
     {
         for (int i = 0; i < Jump.Count; i++)
         {
             Avatar.Add(new Bitmap(Jump[i]));
         }
     }
 }