コード例 #1
0
    public IEnumerator Fever()
    {
        Rainbow rainbow = ColorEx.GetRainbow(this.gameObject.name);

        while (GameMain.Instance.isFeverTime)
        {
            rainbow = ColorEx.Next(rainbow);

            sprite.color        = ColorEx.GetColor(rainbow);
            particle.startColor = ColorEx.GetColor(rainbow);
            yield return(new WaitForSeconds(0.1f));
        }
    }
コード例 #2
0
ファイル: GameMain.cs プロジェクト: Haegon/Spots
    public void ShowSlider()
    {
        m_Slider.value = m_DeadLine / m_TimeLimit;
//		m_Fever.fillAmount = m_DeadLine / m_TimeLimit;

        if (isFeverTime)
        {
            m_SliderSprite.color      = ColorEx.GetColor((Rainbow)(Time.time * 10 % 7));
            m_FeverSprite.fillAmount -= Time.deltaTime / (float)m_FeverTime;
        }
        else
        {
            m_SliderSprite.color = ColorEx.GetColor(m_curRainbow);
        }
    }