Esempio n. 1
0
    private async UniTask SetUserData()
    {
        var userData = new UserData()
        {
            Name = _inputName.text,
        };

        var userHash = await AppApi.CreateUserData(userData);

        var key = UserData.USER_HASH_KEY;

        PlayerPrefs.SetString(key, userHash);
        PlayerPrefs.Save();
        RunTimeData.PlayerData = userData;
        SceneLoadManager.Instance.LoadScene(Scenes.Game);
    }