Convert Int to String?

i wanna make a function that when i click a button set active the next canvas and inactive the current canvas, if just was one of two could be easy but are at least 50…

i try make a var that represent the number of the canvas in the scene and star in 0, so when i press a button the var++ and represent the next scene…and not have to make a lot of functions inactive and active canvas

int nextScene = 0;
public Canvas Canvas1


public void NextFunction ()
	{
          nextScene++;
          nextScene.toString();
          Canvas("nextScene").enabled=false;
	}

The idea is to store all the canvases in an array, so you can access them by index. Then, when you want to go to the next one; inactive the current one, increment the index, and activate the canvas at the new index.

 int current_scene = 0;
 public Canvas[] canvases; // Array of canvases, accessed by index
 
 
 public void NextFunction ()
     {
           // Before incrementing the current_scene value, inactivate the last canvas
           canvases[current_scene].enabled = false;
           // Note; this will eventually create an IndexOutOfBounds error
           current_scene++;
           canvases[current_scene].enabled = true;
     }