Exemplo n.º 1
0
 void Awake()
 {
     player = GameObject.Find("/FPSController/FirstPersonCharacter").GetComponent<Player>();
     gameUI = new TLUI(GameObject.Find("/Canvas/Hint").GetComponent<Text>(),
                       GameObject.Find("/Canvas/Subtitles").GetComponent<Text>(),
                       GameObject.Find("/Canvas/BlackScreen").GetComponent<Animator>());
 }
Exemplo n.º 2
0
 void Awake()
 {
     Application.targetFrameRate = 60;
     player = GameObject.Find("/FPSController/FirstPersonCharacter").GetComponent<Player>();
     gameUI = new TLUI(GameObject.Find("/Canvas/Hint").GetComponent<Text>(),
                       GameObject.Find("/Canvas/Subtitles").GetComponent<Text>(),
                       GameObject.Find("/Canvas/BlackScreen").GetComponent<Animator>());
     Ghoul.player = player.transform;
 }