public void SetUserName() { if (this.Enable) { ApolloAccountInfo accountInfo = Singleton <ApolloHelper> .GetInstance().GetAccountInfo(false); if (accountInfo != null) { GSDK.SetUserName(ApolloConfig.platform, accountInfo.get_OpenId()); } } }
public void SetUserName() { if (this.m_bInit) { ApolloAccountInfo accountInfo = Singleton <ApolloHelper> .GetInstance().GetAccountInfo(false); if (accountInfo != null) { GSDK.SetUserName((int)ApolloConfig.platform, accountInfo.OpenId); } } }
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); }