private void Update() { /* Checks if puzzle is activated. * Checks if puzzle is finished. */ freeze = controller.activatePuzzle(); finished = controller.finishedPuzzle(); }
void FixedUpdate() { /* Checks if it´s time to change Sprite */ if (controller.finishedPuzzle()) { if (time >= 10 && round < rounds) { nextChange(); time = 0; round += 1; } time += 1; } }