public void POP_UP_RESPONSE(string s) { switch (s) { case "OK": if (inputBox.text != "") { launchScript.createInvitedSessionUsers(friends, this.inputBox.text.ToString()); launchScript.LaunchGame(this.inputBox.text.ToString(), PlayerPrefs.GetString("SelectedMap"), PlayerPrefs.GetString("SelectedMapData"), friends); PlayerPrefs.SetString("CurrentSession", inputBox.text); PlayerPrefs.Save(); SceneManager.LoadScene(8); } this.deactivatePopUp(); break; case "Cancel": this.deactivatePopUp(); break; default: this.deactivatePopUp(); break; } }