naverz / zepeto-script-sample

38 stars 7 forks source link

서버쪽 스크립트에서 Time.time을 사용하고 싶은데 Time이 import가 안되네요 #79

Closed jeejul1010 closed 2 years ago

jeejul1010 commented 2 years ago

Date.getTime()이나 Date.getSeconds(), Date.now()로 대체하려고 했지만 Time.time을 사용했을 때와 다르게 동작해서 Time.time을 쓰려고 하는데 서버쪽에서 계산되게 하고 싶은데 쓸 방법이 있을까요?

cheolhui-lee commented 2 years ago

안녕하세요 혹시 말씀하시는 Time.time은 UnityEngine에 포함된 객체를 말씀하시는 것일까요? 만약 그렇다면 서버는 Unity 와 무관하게 NodeJS 기반으로 동작을 하기 때문에 원하시는 Time 객체에 대한 접근은 불가능 합니다. 그래서 Date 객체를 활용하시는 것이 가장 좋을 것 같아 보입니다. 고맙습니다.

jeejul1010 commented 2 years ago

알겠습니다 감사합니다!

2021년 11월 22일 (월) 오후 2:31, Cheolhui Lee @.***>님이 작성:

Closed #79 https://github.com/naverz/zepeto-script-sample/issues/79.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naverz/zepeto-script-sample/issues/79#event-5651490664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4WHULNBNMASICJ2QXFGYTUNHISHANCNFSM5IOVO77A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- hellokitty<3er