ํ ์ด๋ธ ๋ฐ๋ก๋ฐ์์๋ ํค๋ค์ ์ ๊ทผํ๊ธฐ ์ด๋ ต์ง์์๋ฐ...
๋ฐธ๋ฅ์์ ๋ ๋ฆฌ์คํธ๊ฐ ๋ค์ด์์๋์ํฉ์ด๋ผ ๋จธ๋ฆฌ๊ฐ ๋ณต์กํ๋ค์
DataSnapshot snapshot = task.Result;
var dictionary = snapshot.Value as Dictionary<string, object>;
if (dictionary != null)
{
PlayerManager.Instance.playerstats.Lv=(int)dictionary["PlayerLV"];
PlayerManager.Instance.playerstats.Coin = (int)dictionary["coin"];
PlayerManager.Instance.playerstats.currentExp = (int)dictionary["playerCurrentExp"];
foreach (KeyValuePair<string, object> item in dictionary)
{
if(item.Key=="HotKeys")
{
...?????
}
}
์ฌ๊ธฐ๊น์ง ์ค๋ค๊ฐ ๋จธ๋ฆฌ๊ฐ ๊ผฌ์์ด์..
์ ์ฅํ๊ณ ์ํ๋ ๋ฐ์ดํฐํด๋์ค๋
public class SaveData
{
public List<Save_Skilldata> Hotkeys = new List<Save_Skilldata>();
public List<SaveItem> Inven_Item2 = new List<SaveItem>();
public int playerCurrentExp;
public int playerLv;
public int coin;
}
์ด๊ฑฐ๊ณ
๊ฐ๋ฆฌ์คํธ๋ค์ int์ string๋ณ์๋ก 2๊ฐ,7๊ฐ์ฉ ์ด๋ฃจ์ด์ง ์ปค์คํ ํด๋์ค๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค...
์ ์ฅํ ๋๋ ๋ฆฌ์คํธ ํต์จฐ๋ก ๋ฃ์ด๋ ํ์ด์ด๋ฒ ์ด์ค ์ ์๋ค์ด๊ฐ๋๋ฐ
๋ถ๋ฌ์ฌ๋๋ ํต์ผ๋ก ๋ชป๋ถ๋ฌ์ค๋์?
๊ฑฐ๊ธฐ ๋ฌธ์ ์ ์ฝ์ด๋ด ํต์ผ๋ก๋ ๊ฐ์ ธ์์ง
ํ... ๋๋ฒ๊น ์ด ๊ฐ์๊ธฐ ๋๋๋ฒ๋ฆฌ๋๋ฌธ์ ๋ ์๊ณ (๋ฐ์ดํฐ๋ฆฌ์คํธ ์ฌ๋ผ์ง) ์ด์ฒด์ ๋๊ตญ์ด๋ค์ ใ ใ ใ ๋ด์ผ๋ค์ํด๋ด์ผํ ๋ฏ..