Example #1
0
 public tile(tileTypes _t)
 {
     whichType       = _t;
     whichRoadType   = roadTypes.NORMAL;
     neighborgs      = new bool[4];
     tStates         = tileStates.FREE;
     whoIsInThisTile = -1;
 }
Example #2
0
    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;
    }
Example #3
0
 public Tile(Vector2 v2, tileTypes t)
 {
     type = t;
     pos = v2;
 }
Example #4
0
 public Door(Vector2 v2, tileTypes t)
     : base(v2,t)
 {
 }