Exemplo n.º 1
0
    void Update()
    {
        if (cooldownTimer <= cooldownTime)
        {
            cooldownTimer += Time.deltaTime;
            ui.UpdateState(cooldownTimer / cooldownTime);

            if (cooldownTimer >= cooldownTime)
            {
                ui.OnReady();
            }
        }
    }