/** * check for game state (victory or not) and slide up marbles if the code is not correct or trigger win actions */ public void Check() { if (!gb.Check()) { sm.SlideUp(); } if (gb.Check()) { victory = true; sm.SlideUp(); GameObject.Find("Check").SetActive(false); } }