Exemple #1
0
 // Use this for initialization
 void Start()
 {
     computer         = GameObject.Find("Computer").GetComponent <CharacterPainter>();
     keyboard         = GameObject.Find("Keyboard").GetComponent <CharacterPainter>();
     inputField       = GameObject.Find("InputField").GetComponent <CharacterPainter>();
     originPlayTime   = playTime;
     originTotalWords = totalWords;
     GameOver();
 }
Exemple #2
0
 private void Start()
 {
     painter = transform.Find("Body").GetComponent <CharacterPainter>();
     SetColor();
     _gameController = FindObjectOfType <GameController>();
 }