Hi Jean!
Thank you very much for your quick response. And sorry for me not being clear in my previous post.
Actually I am creating an idle clicker game and everything is complete and ready to go. But the main problem now arises is the Big numbers! Everything is working good and fine until the total money reaches to 2147483647. And after that every calculation just STOPS!
In first I couldn't track down the problem, than later after checking each and every states, I realized the problem is with the Unity's limit to 2147483647 for Int numbers. And this has becomes a huge problem for me, I didn't knew about this limit before.
As soon the total money reaches 2147483647, the Int calculation gets stuck, and game stops responding in that fsm. I can no longer add any Int numbers to 2147483647 and thus the game freezes instant.
And yes, I could save the 2147483647 as strings in the PlayerPrefs.
But again, when I get that string value from PlayerPrefs, it gets stuck in the string to int conversion state!
This is the problem I am getting, and also not to mention how easily and soon, the game's upgrade and hire manager amount goes to millions!! There are times when I need to add 1,000,000,000 per second to the total money! So you might see how easily the game will freeze and how big the problem is.
I googled about this, and got few interesting options to go with, like storing the numbers as double or using BigIntegar etc.
Also, there are few important places that have discussed this topic in detail!
https://forum.unity.com/threads/big-numbers.369443/https://www.reddit.com/r/gamedev/comments/5u5fcp/how_do_you_approach_really_big_numbers_for/https://gamedev.stackexchange.com/questions/114911/how-do-idle-games-handle-such-large-numbersThis was a good read though, but they didn't described how they saved their numbers
http://blog.kongregate.com/the-math-of-idle-games-part-i/So, I just needed to know which option might be best for me when using Playmaker, when my numbers gets unusally very high in the game.
Thanks and Regards!