// Use this for initialization void Start() { memoryGameScript = GameObject.Find("ColorSquares").GetComponent <MemoryGameScript>(); counter = 0; tenthsOfSecond = 0; start = false; timeLeft = GameObject.Find("TimeLeftText2").GetComponent <Text>(); timeLeft.text = "Time Left: " + seconds.ToString() + "." + tenthsOfSecond.ToString(); }
// Use this for initialization void Start() { memoryGameScript = GetComponentInParent <MemoryGameScript>(); }