I am trying to running IBM Watson conversation service in unity and following here, code snippet
private Conversation m_Conversation = new Conversation();
private string m_WrokspaceID = "xyz";
private string m_input = "help";
// Use this for initialization
void Start () {
Debug.Log("user : " + m_input);
m_Conversation.Message(OnMessage, m_WrokspaceID, m_input);
}
void OnMessage(MessageResponse resp, string customData) {
foreach (Intent mi in resp.intents)
{
Debug.Log("intent : " + mi.intent + ", confidence :" + mi.confidence);
}
Debug.Log("response :" + resp.output.text);
}
But i am getting this error
cannot convert from 'method group' to 'conversation.onMessage'
What i am doing wrong? The code snippet i get from watson official github repo.