示例#1
0
    private GameObject getAdjacent(Vector3 offset)
    {
        Vector3 adjacentPos = transform.position + offset;

        return(grid.GetAt((int)adjacentPos.x, (int)adjacentPos.y, (int)adjacentPos.z));
    }