void onMixUnderstandComplete(bool isError, AndroidJavaObject androidJavaResultType, string json) { ResultType resultType = (ResultType)Enum.Parse(typeof(ResultType), androidJavaResultType.Get <string>("name")); Debug.Log("Result Type : " + resultType + " json : " + json); /// UNDERSTAND : 雲端 LOCAL_COMMAND : 本地 if (!isError && resultType == ResultType.UNDERSTAND) { if (Mibo.onMixUnderstandComplete != null) { Mibo.onMixUnderstandComplete(isError, resultType, json); } } else if (!isError && resultType == ResultType.LOCAL_COMMAND) { if (json == null || json.Length == 0) { //錯誤狀況 字串為空 Mibo.onLocalCommandException(resultType, string.Empty); } else if (Mibo.onLocalCommandComplete != null) { Mibo.onLocalCommandComplete(new VoiceRecognition(json)); } } else if (Mibo.onLocalCommandException != null) { Mibo.onLocalCommandException(resultType, json); } }