Exemplo n.º 1
0
    public void SKILL_2()
    {
        if (isSkill2On && !player.isSkilling())
        {
            skill2Time = 0;
            player.SetPlayerState(Player.PLAYER_STATE.SKILL2);
            isSkill2On = false;

            DobbyControll.Get().Damage(60);
        }
    }
Exemplo n.º 2
0
    public void Clear(Score.ScoreType type)
    {
        enabled          = false;
        renderer.enabled = false;
        processed        = true;


        if (connector)
        {
            if ((int)this.type >= 2)
            {
                connector.GetComponent <SpriteRenderer>().enabled = false;
            }
            else
            {
                connector.SetFirstJoint(transform.parent);
            }
        }

        if (type == Score.ScoreType.Good)
        {
//            Debug.Log("Good");
            DobbyControll.Get().Damage(5);
            EffectShower.Get().Good(transform);
            Score.Get().Up(150);
        }
        else if (type == Score.ScoreType.Great)
        {
//            Debug.Log("Great");
            DobbyControll.Get().Damage(10);
            EffectShower.Get().Great(transform);
            Score.Get().Up(300);
        }

        switch (this.type)
        {
        case Type.UP:
        case Type.OUT_UP:
            SoundEffectManager.Get().PlayUpSound();
            break;

        case Type.DOWN:
        case Type.OUT_DOWN:
            SoundEffectManager.Get().PlayDownSound();
            break;

        default: break;
        }
        checker.Next();
    }
Exemplo n.º 3
0
 void Start()
 {
     dobby          = DobbyControll.Get();
     img            = GetComponent <Image>();
     img.fillAmount = 1;
 }