/// <summary> /// 游戏登录 /// </summary> /// <param name="plat"></param> /// 平台 /// <param name="usName"></param> /// 名字 /// <param name="ps"></param> public void GameLogin() { GCToCS.Login pMsg = new GCToCS.Login { sdk = (Int32)SdkManager.Instance.GetPlatFrom(), //ToReview 平台写死为10? #if UNITY_STANDALONE_WIN || UNITY_EDITOR || SKIP_SDK platform = 0, #elif UNITY_IPHONE platform = 1, #elif UNITY_ANDROID platform = 2, #endif equimentid = MacAddressIosAgent.GetMacAddressByDNet(), name = SelectServerData.Instance.gateServerUin, passwd = SelectServerData.Instance.GateServerToken, }; NetworkManager.Instance.SendMsg(pMsg, (int)pMsg.msgnum); #if UNITY_STANDALONE_WIN || UNITY_EDITOR || SKIP_SDK #else //talkgame 初始化 string ip = JxBlGame.Instance.LoginServerAdress; string curtSdk = SdkManager.Instance.GetPlatFrom().ToString(); string cdkey = SelectServerData.Instance.gateServerUin; TalkGame.Instance.InitTalkGame(curtSdk, cdkey, ip); #endif }
/// <summary> /// 游戏登录 /// </summary> /// <param name="plat"></param> /// 平台 /// <param name="usName"></param> /// 名字 /// <param name="ps"></param> public void GameLogin() { GCToCS.Login pMsg = new GCToCS.Login { sdk = 10,//ToReview 平台写死为10? #if UNITY_STANDALONE_WIN || UNITY_EDITOR || SKIP_SDK || UNITY_EDITOR_OSX platform = 0, #elif UNITY_IOS platform = 1, #elif UNITY_ANDROID platform = 2, #endif equimentid = MacAddressIosAgent.GetMacAddressByDNet(), name = SelectServerData.Instance.gateServerUin, passwd = SelectServerData.Instance.GateServerToken, }; NetworkManager.Instance.SendMsg(pMsg, (int)pMsg.msgnum); }