As developers, it is useful to see elements such as bounding rectangles when run-testing our game. Let's make the rectangular bounds of the movement visually explicit in yellow lines in the Scene window by drawing a yellow "gizmo" rectangle. Add the following method to the C# script class called PlayerMove:
void OnDrawGizmos(){
Vector3 top_right = Vector3.zero;
Vector3 bottom_right = Vector3.zero;
Vector3 bottom_left = Vector3.zero;
Vector3 top_left = Vector3.zero;
if(corner_max && corner_min){
top_right = corner_max.position;
bottom_left = corner_min.position;
bottom_right = top_right;
bottom_right.y = bottom_left.y;
top_left = top_right;
top_left.x = bottom_left.x;
}
//Set the following gizmo colors to YELLOW
Gizmos.color = Color.yellow;
//Draw 4 lines making a rectangle
Gizmos...