/// <summary> /// Writes app state (cloud save) data to the server. /// </summary> /// <param name='slot'> /// The app state slot number. The exact number of slots and their size can be seen /// in the Google Play Games documentation. Slot 0 is always available, and is at /// least 128K long. /// </param> /// <param name='data'> /// The data to write. /// </param> public void UpdateState(int slot, byte[] data, OnStateLoadedListener listener) { if (!IsAuthenticated()) { Logger.e("UpdateState can only be called after authentication."); if (listener != null) { listener.OnStateSaved(false, slot); } return; } mClient.UpdateState(slot, data, listener); }