Commit 05fbeeb3 authored by ricardo larrahondo's avatar ricardo larrahondo

The method callComponentMethod was constructing an AltUnityObjectAction with...

The method callComponentMethod was constructing an AltUnityObjectAction with parameters in bad order.
parent d073ed6b
......@@ -140,7 +140,7 @@ public class AltUnityObject {
public String callComponentMethod(String assemblyName, String componentName, String methodName, String parameters, String typeOfParameters) {
String altObject = new Gson().toJson(this);
String actionInfo = new Gson().toJson(new AltUnityObjectAction(assemblyName, componentName, methodName, parameters, typeOfParameters));
String actionInfo = new Gson().toJson(new AltUnityObjectAction(componentName,methodName,parameters,typeOfParameters,assemblyName));
altUnityDriver.send(altUnityDriver.CreateCommand("callComponentMethodForObject",altObject ,actionInfo ));
String data = altUnityDriver.recvall();
if (!data.contains("error:")) return data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment