示例#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
文件: People.cs 项目: xcmel/FWPGame
 public RegularState(People sprite)
 {
     people = sprite;
     count = 50;
     goLeft = true;
     goRight = false;
     goUp = false;
     goDown = false;
 }
示例#3
0
文件: People.cs 项目: xcmel/FWPGame
 public ElectricState(People sprite)
 {
     people = sprite;
 }
示例#4
0
文件: People.cs 项目: xcmel/FWPGame
 public BurntState(People sprite)
 {
     people = sprite;
 }