public WWWMessage(Networking networking, string theAction, Action<JSONObject> theSuccessCallback, Action<JSONObject> theErrorCallback) { action = theAction; successCallback = theSuccessCallback; errorCallback = theErrorCallback; this.networking = networking; networking.addMessage(this); }
/// <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; }