์˜ˆ๋ฅผ ๋“ค๋ฉด


json


"monsters":

ย  "name": "monster_orc_1"

ย  "can_talk": true,

ย  "can_surrender": true



script


Dictionary dict = // json ๋ฐ์ดํ„ฐ

switch (dict.Keys)

{

ย  case "monster_orc_1":

ย  ย  ...

}


์Šคํฌ๋ฆฝํŠธ์—์„œ case๋ฌธ์ฒ˜๋Ÿผ ์ €๋ ‡๊ฒŒ ๋ฌธ์ž์—ด ๋ฆฌํ„ฐ๋Ÿด๋กœ ์“ฐ๋Š” ๊ฑด ๊ถŒ์žฅ๋˜์ง€ ์•Š์ง€? ๋‹˜๋“ค์€ ์–ด๋–ป๊ฒŒ ์จ์š”?