Esempio n. 1
0
	// Use this for initialization
	void Start () {
		player = GameObject.FindGameObjectWithTag ("Player").transform;
		gameScript = GameObject.Find("Game_Controller").GetComponent<Game_Controller>();
		textManagerScript = GameObject.Find("TextManager").GetComponent<textManager>();
		textTyping[1].text = textManagerScript.sendText(wordLength,wordDifficult);
		HPEnemyScript = transform.GetChild(2).GetChild(0).GetComponent<HPEnemy>();
	}
Esempio n. 2
0
	// Use this for initialization
	void Start () {
		QnTPn.Close ();
		QnTPnC.Close ();
		gameScript = GameObject.Find("Game_Controller").GetComponent<Game_Controller>();
		textManagerScript = GameObject.Find("TextManager").GetComponent<textManager>();
		HPEnemyScript = transform.GetChild(2).GetChild(0).GetComponent<HPEnemy>();
		textTyping [0].text = setOfQuiz [0];
		textTyping [2].text = setOfQuiz [2];
		textTyping [4].text = setOfQuiz [3];
		textTyping [6].text = setOfQuiz [1];
	}
Esempio n. 3
0
	// Use this for initialization
	void Start () {
		PRG_Controller.Close ();
		PRG_STSC.Close ();
		gameScript = GameObject.Find("Game_Controller").GetComponent<Game_Controller>();
		textManagerScript = GameObject.Find("TextManager").GetComponent<textManager>();
		HPEnemyScript = transform.GetChild(2).GetChild(0).GetComponent<HPEnemy>();
		textTyping [1].text = paragraph [0];
		sentence1 = textTyping [1].text;
		textTyping [3].text = paragraph [1];
		sentence2 = textTyping [1].text;
		textTyping [5].text = paragraph [2];
		sentence3 = textTyping [1].text;
		textTyping [7].text = paragraph [3];
		sentence4 = textTyping [1].text;
	}