Example #1
0
        public void GetAsync <T>(string asbName, string prefab, Action <T> action = null, LuaFunction lua = null) where T : UObj
        {
            Action <UObj> _a = null;

            if (null != action)
            {
                _a = (obj) =>
                {
                    if (null != action)
                    {
                        action(obj as T);
                    }
                };
            }
            mObjDict.GetAsync(asbName, prefab, _a, lua);
        }
Example #2
0
 public void GetAsync(string asbName, string prefab, Action <GameObject> action, LuaFunction lua)
 {
     mObjDict.GetAsync(asbName, prefab, action, lua);
 }
Example #3
0
 public void GetAtlasAsync(string asbName, string atlasName, Action <SpriteAtlas> callbcak, LuaFunction luaCall = null)
 {
     mSpriteDict.GetAsync(asbName, atlasName, callbcak, luaCall);
 }