Exemplo n.º 1
0
	void OnTriggerEnter2D(Collider2D coll){
		if (coll.gameObject.tag == "player" && textHasPlayed == false) {

			textBox.reloadScript (theText);
			textBox.currentLine = startLine;
			textBox.endAtLine = endLine;
			textBox.enableTextBox ();
		}
	}
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
    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;
        }
    }
Exemplo n.º 4
0
    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;
        }
    }