Exemplo n.º 1
0
    void UpdateProgress(float deltaTime)
    {
        if (m_AttemptTimer)
        {
            m_CurrentAtemptTimer -= deltaTime;

            m_Progress.SetProgress(m_CurrentAtemptTimer / LevelLogic.GetUnlockAttempTime());

            if (m_CurrentAtemptTimer < 0)
            {
                m_AttemptTimer = false;
            }
        }

        if (m_MoveNextTimer)
        {
            m_CurrMoveNextTime -= deltaTime;

            if (m_CurrMoveNextTime < 0)
            {
                m_MoveNextTimer = false;

                AskForNext();
            }
        }

        m_CurrBag.UpdateMe(deltaTime);
    }
Exemplo n.º 2
0
 void SetAttemptTimer(bool start)
 {
     m_AttemptTimer = start;
     if (start)
     {
         m_CurrentAtemptTimer = LevelLogic.GetUnlockAttempTime();
     }
 }