|
@@ -93,7 +93,8 @@ public class AimHandler : MonoBehaviour
|
|
|
GyrCalibrater = new o0GyrCalibrater();
|
|
GyrCalibrater = new o0GyrCalibrater();
|
|
|
try {
|
|
try {
|
|
|
if (record == null) record = PlayerPrefs.GetString("o0GyrCalibrater");
|
|
if (record == null) record = PlayerPrefs.GetString("o0GyrCalibrater");
|
|
|
- GyrCalibrater = JsonConvert.DeserializeObject<o0GyrCalibrater>(record);
|
|
|
|
|
|
|
+ var res = JsonConvert.DeserializeObject<o0GyrCalibrater>(record);
|
|
|
|
|
+ if (res != null) GyrCalibrater = res;
|
|
|
} catch(Exception) {}
|
|
} catch(Exception) {}
|
|
|
}
|
|
}
|
|
|
|
|
|