public void ShareTheLevel() { // first get the amount of created levels by this user. The number is then used for the SharedLevelAmountKey of the saving level _afterGettingLevelAmountDelegate = OnShare; // Get shared level amount PlayFabController.instance.GetUserReadOnlyData(PlayFabController.instance.currentPlayerPlayfabID, SharedLevelAmountKey, OnFinishedGettingLevelAmount); }
public void LoadLastSharedLevel() { _afterGettingLevelAmountDelegate = OnLoad; // Get shared level amount PlayFabController.instance.GetUserReadOnlyData(PlayFabController.instance.currentPlayerPlayfabID, SharedLevelAmountKey, OnFinishedGettingLevelAmount); }