public void callback_OnSavedGameOpened(GooglePlayGames.BasicApi.SavedGame.ISavedGameMetadata game) { #if UNITY_ANDROID GooglePlayAPI gp = gameService as GooglePlayAPI; if (pendingCloudSaveOperation == 1) { // ready to load from cloud gp.LoadGameData(game); } else if (pendingCloudSaveOperation == 2) { // ready to save to cloud byte[] byteArrayToSend = ToByteArray(gameDataBlob); gp.SaveGame(game, byteArrayToSend, System.TimeSpan.FromSeconds(gameDataBlob.totalAppointmentTime)); } else if (pendingCloudSaveOperation == 3) { // ready to send an invalid cloud save data to clear cloud save data byte[] byteArrayToSend = new byte[] { 0, 1, 2, 3 }; gp.SaveGame(game, byteArrayToSend, System.TimeSpan.FromSeconds(0.0f)); } #endif }
public void InvitationReceived(GooglePlayGames.BasicApi.Multiplayer.Invitation invitation, bool yesOrNo) { Debug.Log("Tou have been invited on a game of MOOOOOOLES"); }