public void SetCurrentTileInstantly(GameObject go)
    {
        if (go.transform.parent.gameObject.name.Equals("uteRUNTIME_TILES_STATIC"))
        {
            isCurrentStatic = true;
        }
        else
        {
            isCurrentStatic = false;
        }

        currentTile = go;

        uteTilePivotOffset to = currentTile.GetComponentInChildren <uteTilePivotOffset>();

        if (to)
        {
            customTileOffset = to.TilePivotOffset;
        }
        else
        {
            customTileOffset = Vector3.zero;
        }

        currentObjectID = currentTile.name;
    }
    public IEnumerator SetCurrentTile(GameObject go)
    {
        yield return(new WaitForSeconds(0.03f));

        if (go.transform.parent.gameObject.name.Equals("uteRUNTIME_TILES_STATIC"))
        {
            isCurrentStatic = true;
        }
        else
        {
            isCurrentStatic = false;
        }

        currentTile = go;

        uteTilePivotOffset to = currentTile.GetComponentInChildren <uteTilePivotOffset>();

        if (to)
        {
            customTileOffset = to.TilePivotOffset;
        }
        else
        {
            customTileOffset = Vector3.zero;
        }

        currentObjectID = currentTile.name;

        yield return(0);
    }