public void showNeighbours() { Debug.Log("///////Node: " + movable + "///////"); if (l != null) { Debug.Log("Left: " + l.getMovable()); } if (r != null) { Debug.Log("Right: " + r.getMovable()); } if (u != null) { Debug.Log("Up: " + u.getMovable()); } if (d != null) { Debug.Log("Down: " + d.getMovable()); } Debug.Log("///////Node: " + movable + "///////"); }