Пример #1
0
    public void Spot(GameObject target)
    {
        if (!isFeverTime)
        {
            m_curRainbow = ColorEx.Next(m_curRainbow);
        }

        m_Count++;
        m_Combo.ComboCheck(target);
    }
Пример #2
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));
        }
    }