Esempio n. 1
0
    public bool IsTileValid(Vector3 position)
    {
        TilePath tile = System.Array.Find(path, t => t.transform.position == position);

        if (tile != null)
        {
            tile.LightUp();
            tile.SetVisit(true);
            return(true);
        }
        else
        {
            return(false);
        }
    }