Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Transfer data from device to publisher

Discussion in 'Scripting' started by bozzor, Jun 20, 2014.

  1. bozzor

    bozzor

    Joined:
    Jun 20, 2014
    Posts:
    4
    Hey guys! In my new game, you have to guess a word, without using 4 other words for explanation. I store these words in a string arrray with 5 elements.... To keep my data base filled with interesting new words, i want to make updates with new words. And therefore, i would like the user be able to propose words.

    So here is my question: I made a script, that stores the proposed word plus the 4 other words in an array. But i am searching for a solution for transfering this array to me. Wich possibillities exist? How do they work? Thanks for your help already!
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    What you're seeking is the WWW class, which allows you to send or receive web calls.
     
    Graham-Dunnett likes this.
  3. bozzor

    bozzor

    Joined:
    Jun 20, 2014
    Posts:
    4
    Thank you, but would you be so kind to tell me something more about this www class? i have no idea how to work with it, and i am totally new to all online stuff... is there a tutorial or stuff like that?
     
  4. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    I'm not sure I can say much more... That class is just a wrapper around Web calls. It's the same call you would do to load a website, or anything from a URL.

    http://docs.unity3d.com/ScriptReference/WWW.html The online doc got a few example...
    http://www.w3schools.com/tags/ref_httpmethods.asp What is the difference between POST and GET.
     
    bozzor likes this.