/// <summary> /// Initializes the plugin and sets the logging system /// </summary> public static bool Init(LOGCB log) { #if !UNITY_IPHONE || UNITY_EDITOR try { UWK_SetLogCB(log); } catch { return(false); } #endif bool initialized = UWK_Init(); if (!initialized) { throw new Exception("Unable to initialize UWKPlugin"); } #if !UNITY_IPHONE || UNITY_EDITOR UWK_SetProcessCB(ProcessCommand); #endif return(true); }
static extern void UWK_SetLogCB(LOGCB callback);
/// <summary> /// Initializes the plugin and sets the logging system /// </summary> public static bool Init(LOGCB log) { #if !UNITY_IPHONE || UNITY_EDITOR try { UWK_SetLogCB (log); } catch { return false; } #endif bool initialized = UWK_Init (); if (!initialized) throw new Exception ("Unable to initialize UWKPlugin"); #if !UNITY_IPHONE || UNITY_EDITOR UWK_SetProcessCB (ProcessCommand); #endif return true; }