|
@@ -18,7 +18,7 @@ namespace SC.XR.Unity {
|
|
|
float y = 0;
|
|
|
private void Start()
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
startScale = transform.localScale;
|
|
|
HttpTool.Instance.Get("https://fat1.qulivr.com/mr-navigator/v1/", "", (string getInterval) => {
|
|
|
Debug.Log(getInterval);
|
|
@@ -31,8 +31,8 @@ namespace SC.XR.Unity {
|
|
|
z = float.Parse(data["defaultKeyboardZaxis"].ToString());
|
|
|
y = float.Parse(data["defaultKeyboardHeight"].ToString());
|
|
|
|
|
|
- z = (data["defaultKeyboardZaxis"].ToString() == string.Empty) ? 1 : z;
|
|
|
- y = (data["defaultKeyboardHeight"].ToString() == string.Empty) ? 1 : y;
|
|
|
+ z = (string.IsNullOrEmpty(data["defaultKeyboardZaxis"].ToString())) ? 1 : z;
|
|
|
+ y = (string.IsNullOrEmpty(data["defaultKeyboardHeight"].ToString())) ? 1 : y;
|
|
|
}
|
|
|
else
|
|
|
Debug.LogError(" HttpTool Get Interval Error!!! ");
|