public void Login() { var request = new LoginWithEmailAddressRequest { Email = EmailInput.text, Password = PasswordInput.text}; PlayFabClientAPI.LoginWithEmailAddress(request, (result) => { TextShow = 1; myID = result.PlayFabId; LittleText.text = "ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค"; Invoke("GetStat", 0.2f); }, (error) => TextShow = 2); } public void Reg1ster() { var request = new Reg1sterPlayFabUserRequest { Email = RegEmailInput.text, Password = RegPasswordInput.text, Username = RegUsernameInput.text }; PlayFabClientAPI.Reg1sterPlayFabUser(request, (result) => TextShow = 3, (error) => TextShow = 4); } public void SetStat() { PlayFabClientAPI.UpdatePlayerStatistics(new UpdatePlayerStatisticsRequest { Statistics = new List<StatisticUpdate> { new StatisticUpdate {StatisticName = "LoadoutUnlock", Value = int.Parse(Whatever.text)}, new StatisticUpdate {StatisticName = "Account", Value = int.Parse(Whateverer.text)}, } }, (result) => { Debug.Log("์ €์žฅํ–‡ใ……๋‹ค"); }, (error) => { Debug.Log("์ €์žฅ๋ชปํ–‡ใ……๋‹ค"); }); } public void GetStat() { PlayFabClientAPI.GetPlayerStatistics( new GetPlayerStatisticsRequest(), (result) => { foreach (var eachStat in result.Statistics) WeaponInt = eachStat.Value; }, (error) => { Debug.Log("๋ชป ๋ถˆ๋Ÿฌ์™“ใ……๋‹ค"); });
์—ฌ๊ธฐ์„œ ๋ญ˜ ๊ฑด๋“ค์—ฌ์•ผ ์ž๋™๋กœ๊ทธ์ธ ๋ญ์‹œ๊ธฐ๋ฅผ ์‹œํ‚ฌ ์ˆ˜ ์žˆ์„๊นŒ์–˜๊ฐ€ ์•„๋‹ˆ๋ผ ๊ทธ๋ƒฅ ํ”Œ๋ ˆ์ดํŒน ์ž์ฒด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ฑด๋“ค์—ฌ์•ผํ•˜๋‚˜?