I
I
i__egor2020-08-01 17:53:40
Unity
i__egor, 2020-08-01 17:53:40

How to save game in unity using google play services plugin?

I want to make cloud saves for a mobile game. In the description for the plugin on the github there is a function, as I understand it, we save it with the help of it:

SaveGame(ISavedGameMetadata game, byte[] savedData, System.TimeSpan totalPlaytime)

savedData - the save data itself,
totalPlaytime - it's not clear why, but time is the total time spent in the game by the player (for all time)?
ISavedGameMetadata game - what is this (how to get, create)?
Maybe there are examples of how to use it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question