Exemple #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());
            }
        }
    }
Exemple #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);
            }
        }
    }
Exemple #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);
    }