public static void CleanAssetBundles() { string absolutePath = PathUtil.GetDataPath(AssetBundleOutputDirectory); Logger.Log($"Deleting asset bundle directory {absolutePath}"); if (Directory.Exists(absolutePath)) { Directory.Delete(absolutePath, true); } AssetDatabase.Refresh(); }
static StackObject *Log_13(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Object @context = (UnityEngine.Object) typeof(UnityEngine.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Object @message = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.String @tag = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Log(@tag, @message, @context); return(__ret); }
public SessionResult(DateTime timeCreated, TimeSpan spentTime, string playerName, int coins, string deathCause) { _logger = new UnityEngine.Logger(new LabyrinthLogHandler()); _logger.Log(_tag, "SessionResult Create."); TimeCreated = timeCreated; if (Menu.SessionList == null) { Id = 0; } else { Id = Menu.SessionList.Sessions.Count; } SpentTime = spentTime.Minutes + ":" + spentTime.Seconds; PlayerName = playerName; Coins = coins.ToString(); DeathCause = deathCause; }
public SessionResult() { _logger = new UnityEngine.Logger(new LabyrinthLogHandler()); _logger.Log(_tag, "SessionResult Create."); }
static int _m_Log(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <object>(L, 2)) { object _message = translator.GetObject(L, 2, typeof(object)); gen_to_be_invoked.Log(_message); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.LogType>(L, 2) && translator.Assignable <object>(L, 3)) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); object _message = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.Log(_logType, _message); return(0); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3)) { string _tag = LuaAPI.lua_tostring(L, 2); object _message = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.Log(_tag, _message); return(0); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.LogType>(L, 2) && translator.Assignable <object>(L, 3) && translator.Assignable <UnityEngine.Object>(L, 4)) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); object _message = translator.GetObject(L, 3, typeof(object)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); gen_to_be_invoked.Log(_logType, _message, _context); return(0); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.LogType>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4)) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); string _tag = LuaAPI.lua_tostring(L, 3); object _message = translator.GetObject(L, 4, typeof(object)); gen_to_be_invoked.Log(_logType, _tag, _message); return(0); } if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3) && translator.Assignable <UnityEngine.Object>(L, 4)) { string _tag = LuaAPI.lua_tostring(L, 2); object _message = translator.GetObject(L, 3, typeof(object)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); gen_to_be_invoked.Log(_tag, _message, _context); return(0); } if (gen_param_count == 5 && translator.Assignable <UnityEngine.LogType>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4) && translator.Assignable <UnityEngine.Object>(L, 5)) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); string _tag = LuaAPI.lua_tostring(L, 3); object _message = translator.GetObject(L, 4, typeof(object)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 5, typeof(UnityEngine.Object)); gen_to_be_invoked.Log(_logType, _tag, _message, _context); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.Log!")); }