public void GoToVersion1() { GetComponent <AudioSource>().PlayOneShot(buttonSound); Debug.Log("Go to v.1"); versionNumber = 1; if (ParseScript.exist2 || ParseScript.exist3) { error = true; } else { ParseScript.AddUser("Version_1"); } }
public void GoToVersion3() { GetComponent <AudioSource>().PlayOneShot(buttonSound); Debug.Log("Go to v.3"); versionNumber = 3; if (!ParseScript.exist3 && !ParseScript.exist2 && ParseScript.exist1) { error = true; } else if (!ParseScript.exist3 && ParseScript.exist2) { ParseScript.CopyUser("Version_2", "Version_3"); } else { ParseScript.AddUser("Version_3"); } }