MonsterCtrl.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        // ~StateInfo(x).nameHashは非推奨
        //if (_animator.GetCurrentAnimatorStateInfo (0).nameHash == hashGotHit)
        if(_animator.GetCurrentAnimatorStateInfo(0).fullPathHash == Animator.StringToHash("Base Layer.gothit"))
        {
            _animator.SetBool("IsHit",false);
        }
        //		if (_animator.GetCurrentAnimatorStateInfo (0).nameHash == hashFall)
        if(_animator.GetCurrentAnimatorStateInfo(0).fullPathHash == Animator.StringToHash("Base Layer.fall"))
        {
            _animator.SetBool("IsPlayerDie",false);
        }
        //		if (_animator.GetCurrentAnimatorStateInfo (0).nameHash == hashDie)
        if (_animator.GetCurrentAnimatorStateInfo (0).fullPathHash == Animator.StringToHash ("Base Layer.die")) {
            _animator.SetBool("IsTrace",false);
            _animator.SetBool ("IsDie", false);
        }
    }