void Awake() { initDelegate = OnFacebookInitialized; hideUnityDelegate = OnHideUnity; onRoundInformationReceivedDelegate = OnRoundInformationReceived; FB.Init (OnFacebookInitialized, OnHideUnity); }
public static IEnumerator TestGet(OnRoundInformationReceivedDelegate callback) { Debug.Log ("Starting TestGet"); Debug.Log (BaseUrl); Debug.Log (UrlParameters); string requestStatement = serverUrl + gameRequest + "?" + idParameter + "justice"; Debug.Log ("Requesting GET from: " + requestStatement); WWW www = new WWW (requestStatement); yield return www; RoundInformation roundInformation = new RoundInformation (www.text); callback (roundInformation); }