Beispiel #1
0
    //void checkA()
    //{
    //    animator.SetBool("sing", false);
    //    if (Input.GetKey(KeyCode.A)  && !animator.GetCurrentAnimatorStateInfo(0).IsName("Dash"))
    //    {
    //        animator.SetBool("sing", sing);
    //        sing = false;
    //        stoprush = true;
    //    }
    //    if (Input.GetKeyUp(KeyCode.A))
    //    {
    //        animator.SetBool("sing", sing);
    //        sing = true;
    //    }
    //}

    void Attack()
    {
        if (skc.sp > 0.5f)
        {
            //发动攻击技能
            skc.DoAttackSkill();
            skc.sp = skc.sp - 0.5f;
            skc.Attack();
        }
    }