Esempio n. 1
0
    private void Update()
    {
        /* Checks if puzzle is activated.
         * Checks if puzzle is finished.
         */

        freeze   = controller.activatePuzzle();
        finished = controller.finishedPuzzle();
    }
Esempio n. 2
0
    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;
        }
    }