Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 static extern void UWK_SetLogCB(LOGCB callback);
Esempio n. 3
0
        /// <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;
        }
Esempio n. 4
0
 static extern void UWK_SetLogCB(LOGCB callback);