After following the respective lecture, found that the declaration
Vector2Int gridPos;
was no longer needed/referenced in the WayPoint script.
Also, wouldn’t doing the instruction in CubeEditor script
textMesh = GetComponentInChildren();
be appropriate in Awake or Start instead of being determined multiple times every frame through the procedure calls in Update? Just thinking about optimization…