void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player); playerViewport = GameObject.FindGameObjectWithTag(Tags.playerViewport).GetComponent<Camera>(); playerHealth = player.GetComponent<Player_Health>(); playerInput = player.GetComponent<Player_Input>(); fader = player.GetComponentInChildren<Camera_UI>(); spawnPosition = player.transform.position; spawnRotation = player.transform.rotation; }
void Awake() { player = GameObject.FindGameObjectWithTag(Tags.player); playerHealth = player.GetComponent<Player_Health>(); fader = player.GetComponentInChildren<Camera_UI>(); spawnPosition = player.transform.position; spawnRotation = player.transform.rotation; if (introText) introText.text = ""; }