예제 #1
0
        public void Update(float _delta)
        {
            if (m_oGame.m_iAnturaTriggersIndex < m_oGame.m_afAnturaEnterTriggers.Length && M_oGameTime.Time <= m_oGame.m_afAnturaEnterTriggers[m_oGame.m_iAnturaTriggersIndex])
            {
                if (m_oGame.IsInIdle())
                {
                    ++m_oGame.m_iAnturaTriggersIndex;
                    m_oGame.m_oAntura.GetComponent <AnturaBehaviour>().EnterScene(m_oGame.m_fAnturaAnimDuration);
                    m_oGame.StartCoroutine(Utils.LaunchDelay(m_oGame.m_fAnturaAnimDuration / 6, m_oGame.m_oRoundManager.ShuffleLetters, m_oGame.m_fAnturaAnimDuration / 2));
                }
                else
                {
                    m_oGame.m_afAnturaEnterTriggers[m_oGame.m_iAnturaTriggersIndex] -= 3.0f;
                }
            }

            m_oGame.Context.GetOverlayWidget().SetClockTime(M_oGameTime.Time);


            if (!m_bHurryUpSfx)
            {
                if (M_oGameTime.Time < 4f)
                {
                    m_bHurryUpSfx = true;
                    //AudioManager.I.PlaySfx(Sfx.DangerClockLong);
                    timesUpAudioSource = m_oGame.Context.GetAudioManager().PlaySound(Sfx.DangerClockLong);
                }
            }

            M_oGameTime.Update(_delta);
        }
예제 #2
0
        public void Update(float _delta)
        {
            if (m_oGame.Difficulty > 0.66f && !m_oGame.m_AnturaTriggered && m_oGame.IsInIdle())
            {
                m_oGame.m_AnturaTriggered = true;
                m_oGame.m_oAntura.GetComponent <AnturaBehaviour>().EnterScene(m_oGame.m_fAnturaAnimDuration);
                m_oGame.StartCoroutine(Utils.LaunchDelay(m_oGame.m_fAnturaAnimDuration / 6, m_oGame.m_oRoundManager.ShuffleLetters, m_oGame.m_fAnturaAnimDuration / 2));
            }

            m_oGame.Context.GetOverlayWidget().SetClockTime(M_oGameTime.Time);

            M_oGameTime.Update(_delta);
        }
예제 #3
0
        public void Update(float _delta)
        {
            if (m_oGame.m_iAnturaTriggersIndex < m_oGame.m_afAnturaEnterTriggers.Length && M_oGameTime.Time <= m_oGame.m_afAnturaEnterTriggers[m_oGame.m_iAnturaTriggersIndex])
            {
                if (m_oGame.IsInIdle())
                {
                    ++m_oGame.m_iAnturaTriggersIndex;
                    m_oGame.m_oAntura.GetComponent <AnturaBehaviour>().EnterScene(m_oGame.m_fAnturaAnimDuration);
                    m_oGame.StartCoroutine(Utils.LaunchDelay(m_oGame.m_fAnturaAnimDuration / 6, m_oGame.m_oRoundManager.ShuffleLetters, m_oGame.m_fAnturaAnimDuration / 2));
                }
                else
                {
                    m_oGame.m_afAnturaEnterTriggers[m_oGame.m_iAnturaTriggersIndex] -= 3.0f;
                }
            }

            m_oGame.Context.GetOverlayWidget().SetClockTime(M_oGameTime.Time);


            M_oGameTime.Update(_delta);
        }