// Use this for initialization void Start() { anim = gameObject.GetComponent <Animator> (); changer = GameObject.Find("sceneManager").GetComponent <changeScene>(); AudioSource[] sounds = GetComponents <AudioSource>(); spring = sounds[0]; hit = sounds[1]; gm = gameManager.instance; }
// Use this for initialization void Start() { charText = GameObject.Find("CharText").GetComponent <Text> (); placeholderText = GameObject.Find("Placeholder").GetComponent <Text> (); script = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <changeScene> (); }
// Use this for initialization void Start() { charText = GameObject.Find ("CharText").GetComponent<Text> (); placeholderText = GameObject.Find ("Placeholder").GetComponent<Text> (); script = GameObject.FindGameObjectWithTag ("MainCamera").GetComponent<changeScene> (); }
// Use this for initialization void Start() { gm = gameManager.instance; changer = GameObject.Find("sceneManager").GetComponent <changeScene>(); timerStarted = true; }
// Use this for initialization void Start() { changer = GameObject.Find("sceneManager").GetComponent <changeScene>(); }