void OnTriggerEnter2D(Collider2D coll){ if (coll.gameObject.tag == "player" && textHasPlayed == false) { textBox.reloadScript (theText); textBox.currentLine = startLine; textBox.endAtLine = endLine; textBox.enableTextBox (); } }
void OnTriggerEnter2D(Collider2D coll) { if (coll.gameObject.tag == "player" && textHasPlayed == false && GameObject.Find("Player").GetComponent <playerMove> ().secondPlaythrough == true) { textBox.reloadScript(theText); textBox.currentLine = startLine; textBox.endAtLine = endLine; textBox.enableTextBox(); } }
void OnTriggerEnter2D(Collider2D coll) { if (coll.gameObject.tag == "player" && textHasPlayed == false) { textBox.reloadScript(theText); textBox.currentLine = startLine; textBox.endAtLine = endLine; textBox.enableTextBox(); GameObject.Find("Target").GetComponent <targetControl> ().playerGotWeaponAdvice = true; } }
void OnTriggerEnter2D(Collider2D coll) { if (coll.gameObject.tag == "player" && textHasPlayed == false) { textBox.reloadScript(theText); textBox.currentLine = startLine; textBox.endAtLine = endLine; textBox.enableTextBox(); X.SetActive(true); GameObject.Find("Target").GetComponent <targetControl> ().AREquipped = false; GameObject.Find("Target").GetComponent <targetControl> ().MLEquipped = true; textHasPlayed = true; } }