public string Call(string action, string parameters)
{
string result = null;
try
{
if(!UnityEngine.Application.isEditor)
{
#if UNITY_ANDROID
if(plugin != null)
{
result = plugin.CallStatic<string>("call", action, parameters);
}
#elif UNITY_IPHONE
result = Marshal.PtrToStringAuto(_call(action, parameters));
#endif
Logger.Log(true,"Call result: ",result);
}
}
catch(Exception e)
{
Logger.Error(false, "Call", e);
}
return result;
}