Beispiel #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>());
 }
Beispiel #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;
 }