void Awake() { player = GameObject.Find("Player"); playerController = player.GetComponent <PlayerController> (); spacebar = GameObject.Find("PressSpaceBarText").GetComponent <Text> (); HUD = GameObject.Find("HUDCanvas").GetComponent <HUDController> (); anim_gameOver = GameObject.Find("HUDCanvas").GetComponent <Animator> (); bgController = BGObject.GetComponent <BGPlayerScript>(); }
void Awake() { player = GameObject.Find ("Player"); playerController = player.GetComponent<PlayerController> (); spacebar = GameObject.Find ("PressSpaceBarText").GetComponent<Text> (); HUD = GameObject.Find ("HUDCanvas").GetComponent<HUDController> (); anim_gameOver = GameObject.Find ("HUDCanvas").GetComponent<Animator> (); bgController = BGObject.GetComponent<BGPlayerScript>(); }