Esempio n. 1
0
    public void onLoginSuccess(string result)
    {
        Debug.Log("GamePotEventListener::onLoginSuccess-" + result);
        NUserInfo userInfo = JsonMapper.ToObject <NUserInfo>(result);

        if (cbLogin != null)
        {
            cbLogin(NCommon.ResultLogin.SUCCESS, userInfo);
            cbLogin = null;
        }
        else
        {
            if (GamePotInterface != null)
            {
                GamePotInterface.onLoginSuccess(userInfo);
            }
        }
    }