public void click(int location) { switch (location) { case 0: SceneScript.FadeToScene("MemoryGame"); CropTextures.GridType = CropTextures.Options.Grid3X3; GameController.num_buttons = 18; GameController.cellSize = 135f; GameController.collum = 6; break; case 1: SceneScript.FadeToScene("MemoryGame"); CropTextures.GridType = CropTextures.Options.Grid4X4; GameController.num_buttons = 32; GameController.cellSize = 98f; GameController.collum = 8; break; case 2: SceneScript.FadeToScene("MemoryGame"); CropTextures.GridType = CropTextures.Options.Grid5X5; GameController.num_buttons = 50; GameController.cellSize = 73f; GameController.collum = 10; break; case 3: SceneScript.FadeToScene("MenuGame"); break; } if (location != 3)// indica que foi escolhida uma dificuldade { difficulty = location; } }
public void ReturnMenu() => SceneScript.FadeToScene("MenuGame");
public void GoTo(string location) => SceneScript.FadeToScene(location);