public void OnHello(Settings settings, string memory) { if (logging) { Debug.Log("[SensoManager] OnHello"); } if (logging) { Debug.Log("Settings: " + JsonUtility.ToJson(settings)); } if (logging) { Debug.Log("Memory: " + memory); } _settings = settings; GenericGameSave save = null; if (memory != null) { if (logging) { Debug.Log("Memory not null. Loading"); } save = JsonUtility.FromJson <GenericGameSave>(memory); } _memory = save; _ready = true; OnReady?.Invoke(); #if !UNITY_EDITOR Play.Ready(); #endif }
public void OnHello(Settings settings) { if (logging) { Debug.Log("[SensoManager] OnHello"); } if (logging) { Debug.Log("Settings: " + JsonUtility.ToJson(settings)); } _settings = settings; _ready = true; OnReady?.Invoke(); #if !UNITY_EDITOR Play.Ready(); #endif }