void Update() { ReelSpin reel1 = this.transform.Find("Reel1").GetComponent <ReelSpin>(); ReelSpin reel2 = this.transform.Find("Reel2").GetComponent <ReelSpin>(); ReelSpin reel3 = this.transform.Find("Reel3").GetComponent <ReelSpin>(); if (reel1.isDone) { allStop[0] = true; } if (reel2.isDone) { allStop[1] = true; } if (reel3.isDone) { allStop[2] = true; } if (isAgain) { LineDisable(); } if (allStop[0] && allStop[1] && allStop[2]) { CheckLines(); allStop[0] = allStop[1] = allStop[2] = false; if (isWin) { congText.gameObject.SetActive(true); countText.gameObject.SetActive(true); countText.text = "You got " + count.ToString() + " Line."; isWin = false; } count = 0; isAgain = true; } }