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;
}