// public void GuestCompelte(){ // Login (mLoginEvent.Response.data.memberEmail, mLoginEvent.Response.data.memberPwd); // } public void SetGCMId() { UtilMgr.DismissLoading(); #if (UNITY_EDITOR) mLoginInfo.memUID = AndroidMgr.GetMsg(); mLoginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier; DoLogin(); #elif (UNITY_ANDROID) mLoginInfo.memUID = AndroidMgr.GetMsg(); mLoginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier; DoLogin(); #else StopCoroutine(WaitingToken()); mLoginInfo.memUID = IOSMgr.GetMsg(); EventDelegate eventd = new EventDelegate(this, "DoLogin"); IOSMgr.GetUID("", eventd); #endif }
public void DoJoin() { if (Application.platform == RuntimePlatform.IPhonePlayer) { mMemInfo.DeviceID = IOSMgr.GetMsg(); } // GetComponentInParent<ScriptTitle>().mProfileEvent = // new GetProfileEvent(new EventDelegate(this, "CompletedJoin")); // NetMgr.JoinMember(mMemInfo, GetComponentInParent<ScriptTitle>().mProfileEvent, UtilMgr.IsTestServer(), true); Debug.Log("memName is " + mMemInfo.MemberName); LoginInfo loginInfo = new LoginInfo(); loginInfo.memberName = mMemInfo.MemberName; loginInfo.Photo = mMemInfo.Photo; loginInfo.PhotoBytes = mMemInfo.PhotoBytes; loginInfo.DeviceID = mMemInfo.DeviceID; GetComponentInParent <ScriptTitle>().Login(loginInfo); // GetComponentInParent<ScriptTitle>().Login(mMemInfo.MemberEmail, mMemInfo.MemberPwd); }
public void GotImage() { #if (UNITY_EDITOR) #elif (UNITY_ANDROID) mImgPath = AndroidMgr.GetMsg(); #else mImgPath = IOSMgr.GetMsg(); #endif // string filePath = mImgPath; if (System.IO.File.Exists(mImgPath)) { WWW www = new WWW("file://" + mImgPath); StartCoroutine(LoadImage(www)); } else { DialogueMgr.ShowDialogue("Error", "파일을 찾을 수 없습니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null); } }
public void SetMemberPhoto(Texture2D texture) { Sett = true; bool B = SettingPage.activeSelf; if (!SettingPage.activeSelf) { SettingPage.SetActive(true); } // Setimagebyte = Photo; Setimagebyte = File.ReadAllBytes(IOSMgr.GetMsg()); // Setimage.LoadImage (Setimagebyte); // if (Setimage != null) { SettingPage.transform.FindChild("Panel").FindChild("Photo").GetComponent <UITexture> ().mainTexture = texture; //} SettingPage.SetActive(false); SettingPage.SetActive(true); SettingPage.SetActive(B); }
void Login() { mLoginInfo = new LoginInfo(); if (mNick == null) { mLoginInfo.nick = mCheckEvent.Response.data.nick; } else { mLoginInfo.nick = mNick; } if (Application.platform == RuntimePlatform.Android) { mLoginInfo.osType = 1; AndroidMgr.RegistGCM(new EventDelegate(this, "SetGCMId")); StartCoroutine(WaitingToken()); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.osType = 2; // if(CheckPushAgree()){ // mLoginInfo.memUID = ""; // // NetMgr.DoLogin (mLoginInfo, mLoginEvent); // SetGCMId(); // } else{ IOSMgr.RegistAPNS(new EventDelegate(this, "SetGCMId")); //waiting 3 secs StartCoroutine(WaitingToken()); // } } else if (Application.platform == RuntimePlatform.OSXEditor) { mLoginInfo.osType = 1; mLoginInfo.memUID = ""; // NetMgr.DoLogin (mLoginInfo, mLoginEvent); SetGCMId(); } }
// public void Login(string eMail, string pwd) public void Login(LoginInfo loginInfo) { // mLoginInfo = new LoginInfo (); mLoginInfo = loginInfo; mLoginInfo.memberEmail = ""; // mLoginInfo.memberName = nick; mLoginInfo.memberPwd = ""; mLoginEvent = new LoginEvent(new EventDelegate(this, "LoginComplete")); // UtilMgr.ShowLoading (true); PlayerPrefs.SetString(Constants.PrefNick, loginInfo.memberName); // PlayerPrefs.SetString (Constants.PrefPwd, pwd); if (Application.platform == RuntimePlatform.Android) { mLoginInfo.osType = 1; AndroidMgr.RegistGCM(new EventDelegate(this, "SetGCMId")); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.osType = 2; // if(CheckPushAgree()){ // mLoginInfo.memUID = ""; // // NetMgr.DoLogin (mLoginInfo, mLoginEvent); // SetGCMId(); // } else{ IOSMgr.RegistAPNS(new EventDelegate(this, "SetGCMId")); //waiting 4 secs StartCoroutine(WaitingToken()); // } } else if (Application.platform == RuntimePlatform.OSXEditor) { mLoginInfo.osType = 1; mLoginInfo.memUID = ""; // NetMgr.DoLogin (mLoginInfo, mLoginEvent); SetGCMId(); } }
void ruby() { if (Application.platform == RuntimePlatform.IPhonePlayer) { // EventDelegate eventd = new EventDelegate(this, "purchaseInit"); // string prodList = ""; // foreach(ItemShopRubyInfo rubyInfo in getruby.Response.data){ // prodList += rubyInfo.productCode + ";"; // } IOSMgr.InAppInit(); } else if (Application.platform == RuntimePlatform.Android) { #if (UNITY_ANDROID) GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY); #endif } // } else{ GetAblePP(); // } }
public void DoLogin() { if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.DeviceID = IOSMgr.GetMsg(); } Debug.Log("ID is " + mLoginInfo.DeviceID); // NetMgr.DoLogin (mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); if (Application.platform == RuntimePlatform.Android) { mLoginInfo.osType = 1; } else if (Application.platform == RuntimePlatform.IPhonePlayer) { mLoginInfo.osType = 2; } else if (Application.platform == RuntimePlatform.OSXEditor) { mLoginInfo.osType = 1; } NetMgr.LoginGuest(mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true); }
public static void GetHeightStatusBar() { IOSMgr.CallIOSFunc("GetHeightStatusBar", ""); }
public static void OpenFB(EventDelegate eventDelegate) { Instance.mEventDelegate = eventDelegate; IOSMgr.CallIOSFunc("OpenFB", ""); }
public static void ViberateDevice(long millSec) { IOSMgr.CallIOSFunc("ViberateDevice", string.Format("{0}", millSec)); }
public static void RegistGCM(EventDelegate eventDelegate) { Instance.mEventDelegate = eventDelegate; IOSMgr.CallIOSFunc("RegisterGCM", ""); }
public static void GetGalleryImages(EventDelegate eventDelegate) { Instance.mEventDelegate = eventDelegate; IOSMgr.CallIOSFunc("GetGalleryImages", ""); }