public static TDGAAccount SetAccount(string accountId) { TDGAAccount account = new TDGAAccount(); //if the platform is real device if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor) { #if UNITY_IPHONE _tdgaSetAccount(accountId); #elif UNITY_ANDROID AndroidJavaObject jobj = agent.CallStatic <AndroidJavaObject>("setAccount", accountId); account.setAccountObject(jobj); #elif UNITY_WP8 TalkingDataGAWP.TDGAAccount csObj = TalkingDataGAWP.TDGAAccount.setAccount(accountId); account.setAccountObject(csObj); #endif } return(account); }
public void setAccountObject(TalkingDataGAWP.TDGAAccount account) { mAccount = account; }