void Start() { if (CustomPlayerPrefs.HasKey("eventsJSON")) { //print(CustomPlayerPrefs.GetString("eventsJSON", CustomPlayerPrefs.DEFAULT_STRING)); //test eventsJSON = CustomPlayerPrefs.GetObjectValue <JSON>("eventsJSON"); string json = JsonUtility.ToJson(eventsJSON); print(json); coroutine = WaitAndSend(); StartCoroutine(coroutine); } }