Ejemplo n.º 1
0
 public WWWMessage(Networking networking, string theAction, Action<JSONObject> theSuccessCallback, Action<JSONObject> theErrorCallback)
 {
     action = theAction;
     successCallback = theSuccessCallback;
     errorCallback = theErrorCallback;
     this.networking = networking;
     networking.addMessage(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the instance 
 /// </summary>
 void Awake()
 {
     // See if we are a superfluous instance:
     if (_instance != null)
     {
         Debug.LogError("You can only have one instance of the Networking singleton object in existence.");
     }
     else
         _instance = this;
 }