- Home /
Update Script
Hello,
I'm creating an android game, which will have plenty of updates, but i want to be strict on updates also!
To do this i was thinking.
(Working in Android or IOS too?)
1. Script checks if a internet connection is active
2. else load scene 'InternetRequired'
3. ----------
4. If internet connection is active then check (WEBSITE 2)
5. If website 2 contains "UPDATE", Then load scene UPDATENEEDED
6. or if it contains "GOOD", then load scene StartGame
Sorry if it's not clear, but basically I'm trying to make it check if the internet is active, if not exit through a scene. Check if a site (Basic html site with one word) contains the word Update or Good and perform the actions necessary.
Could anyone help me with this, Possibly an example or advice?
Thank you
Answer by ScroodgeM · Aug 17, 2012 at 07:07 AM
http://docs.unity3d.com/Documentation/ScriptReference/WWW.html
check your web site page with version number returned.
if you got same version as installed - this is 'GOOD' if you got other version as installed - this is 'UPDATE NEEDED' else if you got error connecting - this is 'NO INTERNET'
just one check instead of two 8)
be aware that if your website is down, users got 'no internet' 8)
Your answer
Follow this Question
Related Questions
How to regularly send messages(ping) to server when the program running in the Android background? 1 Answer
Android / iphone - Questions? 1 Answer
problem with raycasts and tags 1 Answer
IOS Swipe Gesture 0 Answers
Asset Bundles Question 1 Answer