Пример #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);
        }
Пример #2
0
 static extern void UWK_SetLogCB(LOGCB callback);
Пример #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;
        }
Пример #4
0
 static extern void UWK_SetLogCB(LOGCB callback);