Esempio n. 1
0
        public Hashtable getCoroutines(object callbakFunc)
        {
            object    key = getKey4InvokeMap(callbakFunc, coroutineMap);
            Hashtable ret = MapEx.getMap(coroutineMap, key);

            ret = ret == null ? new Hashtable() : ret;
            coroutineMap[key] = ret;
            return(ret);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the material cfg.取得material引用图片的配置
        /// </summary>
        /// <returns><c>true</c>, if material cfg was gotten, <c>false</c> otherwise.</returns>
        /// <param name="matName">Mat name.</param>
        /// <param name="propNames">Property names.</param>
        /// <param name="texNames">Tex names.</param>
        /// <param name="texPaths">Tex paths.</param>
        public static bool getMaterialTexCfg(string matName, ref ArrayList propNames, ref ArrayList texNames, ref ArrayList texPaths)
        {
            Hashtable cfg = MapEx.getMap(materialTexRefCfg, matName);
            bool      ret = true;

            if (cfg == null)
            {
                Debug.LogError("Get MaterialTexCfg is null!" + matName);
                ret = false;
            }
            else
            {
                propNames = cfg["pp"] as ArrayList;
                texNames  = cfg["tn"] as ArrayList;
                texPaths  = cfg["tp"] as ArrayList;
            }
            return(ret);
        }