void Update() { // >> : 로컬 플레이어가 아니면 입력 받지 않는다.. if (!isLocalPlayer) { return; } // << : // >> : 플레이어가 공격모션일때 키입력 막는다.. if ((animationType != PlayerAnimationType.NORMAL_IDLE) && (animationType != PlayerAnimationType.NORMAL_JUMP) && (animationType != PlayerAnimationType.NORMAL_WALK)) { return; } // << : CharacterControl_Slerp(); CharacterAttackControl(); // >> : animator의 Index 업데이트.. animator.SetInteger("AnimationIndex", animationType.GetHashCode()); }
public void SetPlayerAnimationType(PlayerAnimationType _animationType) { animationType = _animationType; animator.SetInteger("AnimationIndex", animationType.GetHashCode()); }