채팅0

    기다리다지쳐서 내가만들어보겠따고 코드 변경중인데 봐주실분있나요

    조회수 182

    MobWalkLogic.UpdateMovePath에서


    local targetX = target.TransformComponent.WorldPosition.x

    newInputX = targetX > mobX and 1 or -1


    이 코드를


    local destinationX = 10

    local destinationDirection = destinationX > mobX and 1 or -1

    newInputX = destinationDirection


    이렇게 수정하면 어떻게되나요?

    댓글2

    회원프로필

    1:1 ㄱ 수정 다 알려드림

    2024.01.27 20:25
    회원프로필

    이미 풀렸어 윗꺼 다운받아 ㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈㅈ

    2024.01.27 20:25

      게시글 리스트
      제목작성자작성일조회
      1975701-272214
      1975601-27183
      1975501-27134
      1975401-27192
      1975301-27163
      1975201-27211
      1975101-27285
      1975001-27267
      1974901-27419
      1974801-27585
      1974701-27197
      1974601-27273
      1974501-27214
      1974401-27536
      1974301-27206
      1974201-27171
      1974101-27314
      1974001-27276
      1973901-27350
      1973801-27164
      안내 배너 이미지