public void helloFromJS(string message, object callback) { Debug.LogFormat("message from js: {0}", message); var wrap = new CallbackWrapper(callback); if (message.Contains("hello")) { wrap.Send("hello, js"); } else { wrap.Send("hmm..."); } }