Пример #1
0
 public override void Interact(MapTile tile)
 {
     //bool grassFound = false;
     //if (tile.mySprites.Count > 0)
     //{
     //    foreach (Sprite s in tile.mySprites)
      //   {
      //       if (s != null)
       //      {
       //          if (s.name.Equals("GrassSprite"))
       //          {
       //              grassFound = true;
       //              break;
       //          }
       //      }
        // }
     //}
     //if (grassFound)
         //tile.Clear();
         person = game.person.Clone();
         tile.Add(person);
 }
Пример #2
0
 public RegularState(People sprite)
 {
     people = sprite;
     count = 50;
     goLeft = true;
     goRight = false;
     goUp = false;
     goDown = false;
 }
Пример #3
0
 public ElectricState(People sprite)
 {
     people = sprite;
 }
Пример #4
0
 public BurntState(People sprite)
 {
     people = sprite;
 }