public void GotUID()
    {
        LoginInfo loginInfo = new LoginInfo();

        loginInfo.teamCode = mTeamCode;
        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            loginInfo.DeviceID = IOSMgr.GetMsg();
        }
        else
        {
            loginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier;
        }
        if (Application.platform == RuntimePlatform.Android)
        {
            loginInfo.osType = 1;
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            loginInfo.osType = 2;
        }
        else if (Application.platform == RuntimePlatform.OSXEditor)
        {
            loginInfo.osType = 1;
        }

        NetMgr.LoginGuest(loginInfo, mLoginEvent, UtilMgr.IsTestServer(), true);
    }
Esempio n. 2
0
    public void GotUID()
    {
        LoginInfo loginInfo = new LoginInfo();

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            loginInfo.DeviceID = IOSMgr.GetMsg();
        }
        else
        {
            loginInfo.DeviceID = SystemInfo.deviceUniqueIdentifier;
        }


        if (Application.platform == RuntimePlatform.Android)
        {
            loginInfo.osType = 1;
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            loginInfo.osType = 2;
        }
        else if (Application.platform == RuntimePlatform.OSXEditor)
        {
            loginInfo.osType = 1;
        }
        mLoginEvent = new LoginEvent(new EventDelegate(this, "LoginComplete"));
        NetMgr.LoginGuest(loginInfo, mLoginEvent, UtilMgr.IsTestServer(), true);
    }
    public void SetMemberPhoto(Texture2D texture)
    {
        Sett = true;

        //		Setimagebyte = Photo;
        Setimagebyte = File.ReadAllBytes(IOSMgr.GetMsg());
        //		Setimage.LoadImage (Setimagebyte);
        //	if (Setimage != null) {
    }
Esempio n. 4
0
    void DoLogin()
    {
        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            mLoginInfo.DeviceID = IOSMgr.GetMsg();
        }

        Debug.Log("ID is " + mLoginInfo.DeviceID);
        //        NetMgr.DoLogin (mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true);
        mLoginEvent = new LoginEvent(new EventDelegate(ReceivedLogin));
        NetMgr.LoginGuest(mLoginInfo, mLoginEvent, UtilMgr.IsTestServer(), true);
    }
 void OpenGallery()
 {
     CheckInGallery = true;
     Debug.Log("OpenGallery");
             #if (UNITY_ANDROID)
     images = "file://" + AndroidMgr.GetMsg();
             #else
     images = "file://" + IOSMgr.GetMsg();
             #endif
     Debug.Log("images");
     tLoad = new WWW(images);
     StartCoroutine(LoadImage(tLoad));
 }
Esempio n. 6
0
    void GotUidWithGuest()
    {
        string deviceID;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            deviceID = IOSMgr.GetMsg();
        }
        else
        {
            deviceID = SystemInfo.deviceUniqueIdentifier;
        }
        mDeviceEvent = new CheckMemberDeviceEvent(new EventDelegate(this, "GuestClicked2"));
        NetMgr.CheckMemberDevice(deviceID, mDeviceEvent);
    }
Esempio n. 7
0
    void CheckUID()
    {
        string deviceID;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            deviceID = IOSMgr.GetMsg();
        }
        else
        {
            deviceID = SystemInfo.deviceUniqueIdentifier;
        }

        mCheckEvent = new LoginEvent(new EventDelegate(ReceivedChecking));
        NetMgr.CheckDevice(deviceID, mCheckEvent);
    }
Esempio n. 8
0
    void ReceivedGallery()
    {
        Debug.Log("ReceivedGallery");
        string image = "";

        if (Application.platform == RuntimePlatform.Android)
        {
            image = "file://" + AndroidMgr.GetMsg();
        }
        else
        {
            image = "file://" + IOSMgr.GetMsg();
        }
        WWW www = new WWW(image);

        StartCoroutine(LoadImage(www));
    }
 public void CompleteGCM()
 {
     Debug.Log("CompleteGCM");
             #if (UNITY_EDITOR)
     mMemInfo.MemUID   = "";
     mMemInfo.DeviceID = SystemInfo.deviceUniqueIdentifier;
     DoJoin();
             #elif (UNITY_ANDROID)
     mMemInfo.MemUID   = AndroidMgr.GetMsg();
     mMemInfo.DeviceID = SystemInfo.deviceUniqueIdentifier;
     DoJoin();
             #else
     mMemInfo.MemUID = IOSMgr.GetMsg();
     EventDelegate eventd = new EventDelegate(this, "DoJoin");
     IOSMgr.GetUID("", eventd);
             #endif
 }
Esempio n. 10
0
    public void GotUserImg()
    {
        string images;

        Debug.Log("OpenGallery");
        if (Application.platform == RuntimePlatform.Android)
        {
            images = "file://" + AndroidMgr.GetMsg();
        }
        else
        {
            images = "file://" + IOSMgr.GetMsg();
        }
        Debug.Log("images");
        WWW tLoad = new WWW(images);

        StartCoroutine(LoadImage2(tLoad));
    }
Esempio n. 11
0
    //    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
    }
Esempio n. 12
0
    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);
    }
Esempio n. 13
0
    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);
        }
    }
Esempio n. 14
0
    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);
    }
Esempio n. 15
0
    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);
    }