Example #1
0
    protected void getDataFromBase()
    {
        tileBase = GetComponent <TileBase>();

        tileTransform = GetComponent <Transform>();
        tileID        = tileBase.getTileID();
        height        = tileBase.getHeight();
        x             = (int)tileTransform.position.x;
        z             = (int)tileTransform.position.z;

        adjacentTiles          = tileBase.getAdjacentTiles();
        adjacentTilePathFinder = tileBase.getAdjacentTilePathFinder();
    }