Пример #1
0
        /// <summary>
        /// Destroy singleton instance
        /// </summary>
        /// <returns></returns>
        public static bool DeInit()
        {
            if (Instance != null)
            {
                Instance = null;
                return(true);
            }

            return(false);
        }
Пример #2
0
        /// <summary>
        /// Initialize singleton instance
        /// </summary>
        /// <returns></returns>
        public static bool Init(string folder)
        {
            if (Instance == null)
            {
                Instance = new MapWorker(folder);
                return(true);
            }

            return(false);
        }