x


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

more ▼

asked Aug 17 '12 at 06:58 AM

localhost gravatar image

localhost
1 2 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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)

more ▼

answered Aug 17 '12 at 07:07 AM

ScroodgeM gravatar image

ScroodgeM
7.6k 2 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3324
x2458
x494
x292

asked: Aug 17 '12 at 06:58 AM

Seen: 191 times

Last Updated: Aug 17 '12 at 07:07 AM