public void OnUpdate() { gameplayManager.PositionUpdate(); gameplayManager.GravityUpdate(); if (gameplayManager.isStability) { //gameplayManager.GravityUpdate(); list = gameplayManager.Match(); while (list != null) { gameplayManager.RemoveCells(list); //gameplayManager.GravityUpdate(); -- list = gameplayManager.Match(); //gameplayManager.GravityUpdate(); } if (gameplayManager.haveEmptyCells) { //gameplayManager.GravityUpdate(); gameplayManager.FillStartRow(); gameplayManager.GravityUpdate(); } else { list = gameplayManager.Match(); if (list == null && !gameplayManager.haveEmptyCells) { gameplayManager.state = new InputState(gameplayManager); } } } }