private void Update() { if (isCurrentSelectedCharacter) // 나중에 캐릭터 변경할 때만 컨트롤러 상태를 바꾸도록 코드 수정할 것. { //플레이어 컨트롤일시 컨트롤러 상태를 플레이어 컨트롤 상태로 바꾼다. controller = player_Control; } else { //controller = npcAI; } controller.ControlCommand(); //Debug.Log("movedirection "+Move_Direction); CurrentState.Animation(); }