As developers, it is useful to see elements such as bounding rectangles when test-running our game. Let's make the rectangular bounds of the movement visually explicit by using 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.z = bottom_left.z;
top_left = bottom_left;
top_left.z = top_right.z;
}
//Set the following gizmo colors to YELLOW
Gizmos.color = Color.yellow;
//Draw 4 lines...