void Start() { cursor = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <HandleCursor> (); dc = GameObject.Find("GameObject_cursor").GetComponent <Detect_click> (); l9 = GameObject.Find("CheckpointFlag9").GetComponent <lvl9> (); lb = GameObject.Find("GUI").GetComponent <LeaderboardTestGUI> (); //sound = GameObject.Find ("Environmental Sound"); footsound = GameObject.Find("Billie").GetComponent <AudioSource> (); Time.timeScale = 1; starObjects = GameObject.FindGameObjectsWithTag("lvl10"); txt = GameObject.Find("score_text10").GetComponent <Text>(); hidestars(); }
void Start() { menuObjects = GameObject.FindGameObjectsWithTag("MenuButton"); block7 = GameObject.Find("blocker7"); block7.SetActive(false); cursor = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <HandleCursor> (); dc = GameObject.Find("GameObject_cursor").GetComponent <Detect_click> (); l6 = GameObject.Find("CheckpointFlag6").GetComponent <lvl6> (); lb = GameObject.Find("GUI").GetComponent <LeaderboardTestGUI> (); //sound = GameObject.Find ("Environmental Sound"); footsound = GameObject.Find("Billie").GetComponent <AudioSource> (); Time.timeScale = 1; starObjects = GameObject.FindGameObjectsWithTag("lvl7"); txt = GameObject.Find("score_text7").GetComponent <Text>(); hidestars(); }
void Start() { menuObjects = GameObject.FindGameObjectsWithTag("MenuButton"); block2 = GameObject.Find("blocker2"); block2.SetActive(false); //blocker surrounding level 2 is innitially inactive cursor = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <HandleCursor> (); dc = GameObject.Find("GameObject_cursor").GetComponent <Detect_click> (); l1 = GameObject.Find("CheckpointFlag1").GetComponent <lvl1>(); lb = GameObject.Find("GUI").GetComponent <LeaderboardTestGUI> (); //sound = GameObject.Find ("Environmental Sound"); footsound = GameObject.Find("Billie").GetComponent <AudioSource> (); Time.timeScale = 1; starObjects = GameObject.FindGameObjectsWithTag("lvl2"); txt = GameObject.Find("score_text2").GetComponent <Text>(); hidestars(); //initially hide the end of level pop up with stars }