Ejemplo n.º 1
0
    IEnumerator fillTheBar()
    {
        while (fillBar.fillAmount < 1f)
        {
            fillBar.fillAmount = fillBar.fillAmount + 600f * Time.deltaTime;
            Debug.Log(fillBar.fillAmount);
            yield return(new WaitForSeconds(0.0001f));
        }

        yield return(new WaitForSeconds(0.03f));

        crashEvent.disableCrashSequence();
    }