Exemple #1
0
    void DefenseEnd()
    {
        //방어 종료 시, 캐릭터가 움직이는 중이라면 이동 애니메이션
        if (userController._moveVector == Vector3.zero)
        {
            spineController.IdleCharacter();
        }
        else
        {
            spineController.MoveCharacter();
        }

        MainBattleManager.instance.isUserDefensing = false;
        nextDefenseCheckTime = 1;
        defenseTime          = 0;
    }
Exemple #2
0
    public void Move()
    {
        _transform.Translate(_moveVector * moveSpeed * Time.deltaTime);

        //캐릭터가 움직이지 않으면 idle animation 실행
        if (ChangeStat())
        {
            if (isIdle)
            {
                spineController.IdleCharacter();
                isStartAnimation = true;
            }
            else
            {
                //Debug.Log("이동 애니");
                spineController.MoveCharacter();
                isStartAnimation = true;
            }
        }
    }