public tile(tileTypes _t) { whichType = _t; whichRoadType = roadTypes.NORMAL; neighborgs = new bool[4]; tStates = tileStates.FREE; whoIsInThisTile = -1; }
void SillTile() { SpriteRenderer sp = gameObject.GetComponent <SpriteRenderer> (); sp.sprite = soilTileInfo.GetMainSprite(); sp.color = soilTileInfo.GetFrontColor(); transform.GetChild(0).GetComponent <SpriteRenderer> ().color = soilTileInfo.GetBackColor(); description = "Looks like the ground is ready for planting."; tileType = tileTypes.Plant; app = application.Farmland; }
public Tile(Vector2 v2, tileTypes t) { type = t; pos = v2; }
public Door(Vector2 v2, tileTypes t) : base(v2,t) { }