채팅0

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

    조회수 187

    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

      게시글 리스트
      제목작성자작성일조회
      1977401-27262
      1977301-27182
      1977201-27326
      1977101-271074
      1977001-27333
      1976901-27202
      1976801-27163
      1976701-27356
      1976601-27468
      1976501-27337
      1976401-27315
      1976301-27236
      1976201-27364
      1976101-27567
      1976001-27223
      1975901-27142
      1975801-27269
      1975701-272236
      1975601-27188
      1975501-27135
      안내 배너 이미지