public void OnLoad(string Name) { editorScript.firstTime = false; Name = inputField_LoadFrom.text.ToString(); SaveManager.levelName = Name; if (editorScript.Load() == 0) { Debug.Log("no level match found.."); } LoadPanel.SetActive(false); editorScript.ChangeMazeSize(); }