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