Hi!
We have been working with Apple's Unity plugin for our new project but we are facing an issue with the SaveService.
For our project, we want to have one "main" save data that would cover some global stuff related mainly to the user account and then 3 other save slots to track progression in the game itself.
Though right now, it seem we cannot have 2 different type of data, because every time we try to load, we get a InvalidCast error because it retrieved the other type of data too.
When testing with only 1 type (GameData.PlayerData), everything work well, but once we create the other save data and saved it (GameData.Account), it then crash the game, no matter which one we tried to load.
SaveService.GetLocalSaves<GameData.PlayerData>(); -> Will also load GameData.Account
SaveService.GetLocalSaves<GameData.Account>(); -> Will also load GameData.PlayerData
I was hoping that since we specified the type itself when calling GetLocalSaves() it would be okay, but sadly nope.
Is there a way to do this? Only load the right type?
Thanks.