/// <summary> /// Registers the device with the Senseix server, allows a temporary account to be created /// and the Player to begin playing without logging in. Once an account is registered /// or created the temporary account is transitioned into a permanent one. /// </summary> static public IEnumerator RegisterDevice() { string deviceNameInformation = SystemInfo.deviceName; //UnityEngine.Debug.Log ("building request"); Device.DeviceRegistrationRequest newDevice = new Device.DeviceRegistrationRequest(); newDevice.information = (deviceNameInformation); //UnityEngine.Debug.Log ("Device id: " + SenseixSession.GetDeviceID ()); newDevice.device_id = (SenseixSession.GetDeviceID()); Logger.BasicLog("register device going off to " + REGISTER_DEVICE_URL); yield return(GetSingletonInstance().StartCoroutine( CoroutinePostRequest(newDevice, Response.ParseRegisterDeviceResponse, REGISTER_DEVICE_URL, false))); }
/// <summary> /// Registers the device with the Senseix server, allows a temporary account to be created /// and the Player to begin playing without logging in. Once an account is registered /// or created the temporary account is transitioned into a permanent one. /// </summary> public static IEnumerator RegisterDevice() { string deviceNameInformation = SystemInfo.deviceName; //UnityEngine.Debug.Log ("building request"); Device.DeviceRegistrationRequest newDevice = new Device.DeviceRegistrationRequest(); newDevice.information = (deviceNameInformation); //UnityEngine.Debug.Log ("Device id: " + SenseixSession.GetDeviceID ()); newDevice.device_id =(SenseixSession.GetDeviceID()); Logger.BasicLog("register device going off to " + REGISTER_DEVICE_URL); yield return GetSingletonInstance().StartCoroutine( CoroutinePostRequest (newDevice, Response.ParseRegisterDeviceResponse, REGISTER_DEVICE_URL, false)); }