public void LoadPuzzleImage() { if (ID >= MaxImageCount) { ID = 0; } _sprites = Utils.LoadPuzzleImageAsSprites(ID, PuzzleRowsOrCols); _puzzleLayout.SetSprites(_sprites); _puzzleLayout2.SetSprites(_sprites); //ID++; int index = Random.Range(0, MaxImageCount); while (index == ID) { index = Random.Range(0, MaxImageCount); } ID = index; //mBottomMenu.SetActive(false); mAmbientSound.ChangeAudio(); }