- Home /
Same Playerprefs for 2 games? [Android]
Hi, Im doing a demo and full game with 2 different APK.
The question is if I complete x levels in demo and I buy the full version, I want the x levels completed in full version.
Could I use the same playerprefs for the 2 games? Or other way to do this?
Thanks in advance!
I believe the easy way would be to implement an in-app purchase for unlocking the full game and use the same PlayerPrefs.
Answer by SquigglyFrog · Nov 27, 2014 at 06:13 PM
There really is no reason to do 2 seperate APK's.. It clutters the market, and your updating 2 seperate projects. You also can not share the playerprefs between them, they are seperate entities as far as I'm aware, each with its own storage. Take some time and work on just integrating the 2 together and use an IAP or something similiar to allow a player to unlock the full version.. Much better for the players.. First time I ever saw the iOS market it just boggled my mind why everyone had 2 versions of the same app..
if(gameLevel == 5)
{
if(isTrial)
{
ShowEndOfTrial();
}
else
{
NextLevel();
}
}
It really can and should be as simple as that..
$$anonymous$$y first thought was that, but I saw that is not so easy to implement. Not much information and people recommend paying for plugins. :/
Then you havent been searching enough. There are some free plugins available: http://www.onepf.org/openiab
Your answer
Follow this Question
Related Questions
How to access additional SharedPreferences on Android 0 Answers
Playerprefs don't reset after reinstalling the build on my phone. 1 Answer
Android PlayerPrefs not saving? 0 Answers
I want to use the score I saved in unity in Eclipse to publish to the user's Facebook Feed 0 Answers
Unity and SharedUserID for Android 0 Answers