public int SetSpfValue(int _spfV)
 {
     spfV = _spfV;
     tileSpfVUI.SetTextOfTile(spfV.ToString());
     //Debug.Log("Set depth: "+ depth);
     return(spfV);
 }
    public void InitializeTile(int posX, int posY, UITextHandler tileMovesTextComp, UITextHandler tileDepthTextComp, UITextHandler tileSpfVTextComp, SpriteRenderer _tileSprite)
    {
        y           = posX;
        x           = posY;
        tileMovesUI = tileMovesTextComp;
        tileSprite  = _tileSprite;
        if (tileMovesUI)
        {
            tileMovesUI.SetTextOfTile(numMoves.ToString());
        }
        else
        {
            Debug.LogError("TileMovesUI Not SET");
        }

        tileDepthUI = tileDepthTextComp;
        if (tileDepthUI)
        {
            tileMovesUI.SetTextOfTile(depth.ToString());
        }
        else
        {
            Debug.LogError("TileDepthUI Not SET");
        }

        tileSpfVUI = tileSpfVTextComp;
        if (tileSpfVUI)
        {
            tileSpfVUI.SetTextOfTile(spfV.ToString());
        }
        else
        {
            Debug.LogError("TileDepthUI Not SET");
        }
    }
 public int SetNumMoves(int _numMoves)
 {
     numMoves = _numMoves;
     if (numMoves != 0)
     {
         tileMovesUI.SetTextOfTile(numMoves.ToString());
     }
     else
     {
         tileMovesUI.SetTextOfTile("G");
     }
     return(numMoves);
 }
 public int SetTileDepth(int _tileDepth)
 {
     depth = _tileDepth;
     tileDepthUI.SetTextOfTile(depth.ToString());
     //Debug.Log("Set depth: "+ depth);
     return(depth);
 }