Exemplo n.º 1
0
    private IEnumerator StartTimer()
    {
        float t = timeToRemember;

        while (t > 0)
        {
            t -= Time.deltaTime;

            timer_Image.fillAmount = t / timeToRemember;

            yield return(new WaitForEndOfFrame());
        }

        timer_Image.gameObject.SetActive(false);

        GameField.BlocksToQueue();

        NumberBlock.OnBlockAttached += CheckFullField;
    }