Update UnityMessageManager.cs

This commit is contained in:
Rex Raphael 2020-03-31 12:53:58 +02:00 committed by GitHub
parent 7010ee09e3
commit b2127d9310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class UnityMessageManager : MonoBehaviour
try
{
AndroidJavaClass jc = new AndroidJavaClass("com.rexraphael.flutterunitywidget.UnityUtils");
jc.Call("onUnityMessage", message);
jc.CallStatic("onUnityMessage", message);
}
catch (Exception e)
{
@ -180,4 +180,4 @@ public class UnityMessageManager : MonoBehaviour
OnFlutterMessage(handler);
}
}
}
}