Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Staty : MonoBehaviour {
- // Use this for initialization
- void Start ()
- {
- GenerujLinkOdczytywaniaZmiennej("email", "Fores", "");
- }
- // Update is called once per frame
- void Update () {
- }
- void GenerujLinkOdczytywaniaZmiennej(string zmienna, string nazwaGracza, string tabela)
- {
- if(tabela == "") tabela = "Konta";
- WWWForm form = new WWWForm();
- form.AddField("zmienna", zmienna);
- form.AddField("gracz", nazwaGracza);
- form.AddField("tabela", tabela);
- WWW w = new WWW("test69.bugs3.com/Skrypty/odczytDanych.php");
- StartCoroutine(OdczytajZmienna(w));
- }
- IEnumerator OdczytajZmienna(WWW w)
- {
- yield return w;
- Debug.Log (w.text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement