Removed some unnecessary logging, and remove "handler" requirement

This commit is contained in:
Thomas Stockx 2019-08-09 12:06:07 +02:00
parent 3918e743e8
commit ba3dd1e38e
2 changed files with 1 additions and 6 deletions

View File

@ -64,10 +64,6 @@ public class FlutterUnityView implements PlatformView, MethodChannel.MethodCallH
methodName = methodCall.argument("methodName");
message = methodCall.argument("message");
System.out.print(gameObject);
System.out.print(methodName);
System.out.print(message);
UnityUtils.postMessage(gameObject, methodName, message);
result.success(true);
break;

View File

@ -58,9 +58,8 @@ class UnityWidgetController {
Future<dynamic> _handleMethod(MethodCall call) async {
switch (call.method) {
case "onUnityMessage":
dynamic handler = call.arguments["handler"];
if (_unityWidgetState.widget != null) {
_unityWidgetState.widget.onUnityMessage(this, handler);
_unityWidgetState.widget.onUnityMessage(this, call.arguments);
}
break;
default: