Esempio n. 1
0
    public void SetUserName()
    {
        if (this.Enable)
        {
            ApolloAccountInfo accountInfo = Singleton <ApolloHelper> .GetInstance().GetAccountInfo(false);

            if (accountInfo != null)
            {
                GSDK.SetUserName(ApolloConfig.platform, accountInfo.get_OpenId());
            }
        }
    }
Esempio n. 2
0
    public void SetUserName()
    {
        if (this.m_bInit)
        {
            ApolloAccountInfo accountInfo = Singleton <ApolloHelper> .GetInstance().GetAccountInfo(false);

            if (accountInfo != null)
            {
                GSDK.SetUserName((int)ApolloConfig.platform, accountInfo.OpenId);
            }
        }
    }
Esempio n. 3
0
    public void SetGSDKUserName(int plat, string openid)
    {
        int plat2;

        if (plat == 3)
        {
            plat2 = 2;
        }
        else if (plat == 4)
        {
            plat2 = 1;
        }
        else
        {
            plat2 = 5;
        }
        GSDK.SetUserName(plat2, openid);
    }