Exemplo n.º 1
0
    public void QuicktimeEventEnd()      // called by animation
    {
        Sounds_gore.PlaySound();

        if (isHit)         // you are still good
        {
            isHoldingForAttack = false;
            isHit = false;

            Player_Controller.PlayAttack();
        }
        else           // you are done
        {
            StopAllCoroutines();
            Game_Controller.LoseScenario(this);
        }
    }
Exemplo n.º 2
0
    public override bool InputUserSlash(Vector2 inputDir)
    {
        if (base.InputUserSlash(inputDir))
        {
            deathArrow.GetComponent <SpriteRenderer>().color = Color.green;

            if (!isFurySlashing)
            {
                SetColliderActive(0);
            }
            else
            {
                Sounds_gore.PlaySound();
                furySlashCount++;
            }

            return(true);
        }
        else
        {
            return(false);
        }
    }