private void OnCollisionEnter2D(Collision2D collision) { if (GM.songcompleted == true) { AS.Interact(3); } else if (GM.neptuneflag == true) { AS.Interact(4); } else if (GM.songcompleted == false) { AS.Interact(0); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Return)) { if (GameObject.Find("InputField").GetComponent<InputField>().text.Contains("Neptunes") && GM.songcompleted == false && AC.alien1riddlecontact == true && GM.neptuneflag == true) { GM.songcompleted = true; AS.Interact(2); AC.completedb = true; GM.PartCollide(); } else if (GM.songcompleted == false && AC.alien1riddlecontact == true && GM.neptuneflag == true) { songreccomend = GameObject.Find("InputField").GetComponent<InputField>().text.ToString(); print(songreccomend); AS.Interact(1); } } }