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); }
public RegularState(People sprite) { people = sprite; count = 50; goLeft = true; goRight = false; goUp = false; goDown = false; }
public ElectricState(People sprite) { people = sprite; }
public BurntState(People sprite) { people = sprite; }