// COMUNICACAO COM O MOODLE /// <summary> /// Starts the connection procedure. Different procedures occur when running on Android or other. /// Requires that the parameters have been supplied previously /// </summary> public void makeConnection() { Dictionary <String, object> values = new Dictionary <string, object>(); #if UNITY_ANDROID if (!login.multi) { login.selectionMulti(); } values.Add("username", userName); values.Add("password", password); login.beginConnection(values); #else Debug.Log("OTHER"); if (login.multi) { login.selectionMulti(); } // Debug.Log("Values: " + userId + ", " + courseId); values.Add("userId", userId); values.Add("courseId", courseId); if (userId != 0 && courseId != 0) { login.beginConnection(values); } #endif }
public void StartConnection() { Debug.Log(login.beginConnection()); }