private void Awake() { timer = GameObject.Find("Timer").GetComponent <Timer>(); scoreText = GameObject.Find("Score").GetComponent <Text>(); colorTextObject = GameObject.Find("ColorText"); colorText = GameObject.Find("ColorText").GetComponent <TextDet>(); colorText.hasNext = false; rendererBackGround = GameObject.Find("BackGround").GetComponent <Renderer>(); sclera[0] = GameObject.Find("Sclera"); sclera[1] = GameObject.Find("Sclera (1)"); sclera[2] = GameObject.Find("Sclera (2)"); sclera[3] = GameObject.Find("Sclera (3)"); sclera[4] = GameObject.Find("Sclera (4)"); sclera[5] = GameObject.Find("Sclera (5)"); sclera[6] = GameObject.Find("Sclera (6)"); /* GarlandAnim[0] = GameObject.Find("garlandLight_0").GetComponent<Animator>(); * GarlandAnim[1] = GameObject.Find("garlandLight_1").GetComponent<Animator>(); * GarlandAnim[2] = GameObject.Find("garlandLight_2").GetComponent<Animator>(); * GarlandAnim[3] = GameObject.Find("garlandLight_3").GetComponent<Animator>(); * GarlandAnim[4] = GameObject.Find("garlandLight_4").GetComponent<Animator>(); * GarlandAnim[5] = GameObject.Find("garlandLight_5").GetComponent<Animator>(); * GarlandAnim[6] = GameObject.Find("garlandLight_6").GetComponent<Animator>(); */ scrollObjects = GameObject.Find("Score").GetComponent <ScrollObjects>(); }
void Awake() { instance = this; }