-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SVR-14] 재료 조회 기능 추가 #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MTGL
|
||
public class ReadIngredient : MonoBehaviour | ||
{ | ||
public string pkHex = "eda6ef63ae945cd15572fcf7d6635a8b3f8d86e85b57a353b482bc82c7fd2ad4"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pk를 static class로 선언해두고 사용하심 중복 제거에 도움 될겁니다
|
||
GraphApi.Query readIngredient = SavorReference.GetQueryByName("ReadAllIngredient", GraphApi.Query.Type.Subscription); | ||
|
||
readIngredient.SetArgs(new { address = "0x53103C2D7875D2f5f02AeC3075155e268a6e3A94" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 address도 동일하게 static으로 선언해두시는게 편할겁니다
더해서 나중에 다른 address로 조회할 수 있도록 변경될 가능성이 상당히 높으니 입력 받도록 미리 해두시는것도...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다음 작업때 반영할 수 있도록 해보겠습니다 !!
기존 씬 + 코드 재사용하여 Ingredient 조회 후 파싱 + 스크린에 출력
Subscription을 계속 유지시키므로 HashSet 이용하여 스크린 텍스트가 중복으로 더해져 출력하는 것을 방지