Q.
한 프레임동안 apPortrait의 Play 함수가 여러번 호출되는 상황이 있었습니다.
그랬던 캐릭터가 아예 움직이지 않고 굳어버리는 버그가 발생합니다.
There was a situation where the Play function of apPortrait was called multiple times during one frame.
A bug occurred where the character would freeze and not move at all.
A.
(답변 이후에 문제가 해결됨)
기존 시스템은 애니메이션 재생 함수가 호출될 때 애니메이션이 바로 재생되도록 동작합니다.
이때, 실제로 애니메이션 로직이 실행되기 직전에 다른 애니메이션 재생 요청(Play 함수 등)이 다시 들어와서 데이터 오류가 발생한 것입니다.
이후 업데이트에서는 애니메이션 재생 요청이 들어오면 애니메이션 재생 직전에 모든 요청에 대한 유효성을 검토한 후 재생이 실제로 이루어지도록 개선되었습니다.
(Issue resolved after reply)
The previous system works so that the animation is played immediately when the animation Play function is called.
At this time, another animation play request (such as the Play function) came in again right before the animation logic was actually executed, causing a data error.
In later updates, when a request to play an animation comes in, we improved it so that all requests are validated immediately before playing the animation, and then the playback actually takes place.