public void CheckWin() { double res = 1; foreach (var e in items) { res *= e.GetComponent <DragAndDrop>().probability; } if (res == rightDecimal && res != 1) { rightCell = true; rightFill.SetActive(true); if (trainingManager.CheckWin()) { trainingManager.ShowCorrect(); } } else { rightCell = false; rightFill.SetActive(false); trainingManager.CloseCorrect(); } }