Exemplo n.º 1
0
    void Update()
    {
        if (m_Value == value)
        {
            return;
        }

        if (m_Value < value)
        {
            m_Value += Time.deltaTime * m_RollSpeed;
            HOAudioManager.PlayLoopClip("Scoreup");
            if (m_Value > value)
            {
                m_Value = value;
                HOAudioManager.StopLoopClip();
            }
        }
        else if (m_Value > value)
        {
            m_Value -= Time.deltaTime * m_RollSpeed;
            HOAudioManager.PlayLoopClip("Scoreup");
            if (m_Value < value)
            {
                m_Value = value;
                HOAudioManager.StopLoopClip();
            }
        }
        Pattern();
    }
Exemplo n.º 2
0
    public void SetValue(float fillAmount)
    {
        m_Image.fillAmount = fillAmount;
        if (m_Image.fillAmount < .25f)
        {
            m_Twinkle.enabled = true;
        }

        if (m_Image.fillAmount <= 0)
        {
            enabled = false;
        }
        else
        {
            enabled = true;
        }
        if (m_Twinkle.enabled)
        {
            HOAudioManager.PlayLoopClip("Clock");
        }
        if (!enabled || !m_Twinkle.enabled)
        {
            HOAudioManager.StopLoopClip();
        }
    }
Exemplo n.º 3
0
 public void PlayLoopI(int key)
 {
     HOAudioManager.PlayLoopClip(key);
 }
Exemplo n.º 4
0
 public void PlayLoopS(string key)
 {
     HOAudioManager.PlayLoopClip(key);
 }