채팅0

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

    조회수 188

    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

      게시글 리스트
      제목작성자작성일조회
      공지10-2022387
      6179312-30183
      6179212-28456
      6179112-28504
      6179012-26739
      6178912-25886
      6178812-25830
      6178712-241119
      6178612-231477
      6178512-221474
      6178412-221630
      6178312-221432
      6178212-211495
      6178112-211672
      6178012-211586
      6177912-191776
      6177812-181867
      6177712-182508
      6177612-162385
      6177512-142472
      안내 배너 이미지