static int _CreateUnassignedReferenceException(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnassignedReferenceException obj = new UnassignedReferenceException(); LuaScriptMgr.PushObject(L, obj); return(1); } else if (count == 1) { string arg0 = LuaScriptMgr.GetString(L, 1); UnassignedReferenceException obj = new UnassignedReferenceException(arg0); LuaScriptMgr.PushObject(L, obj); return(1); } else if (count == 2) { string arg0 = LuaScriptMgr.GetString(L, 1); Exception arg1 = LuaScriptMgr.GetNetObject <Exception>(L, 2); UnassignedReferenceException obj = new UnassignedReferenceException(arg0, arg1); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: UnassignedReferenceException.New"); } return(0); }
private void Start() { //IL_005c: Expected O, but got Unknown base.cacher = MonoBehaviourSingleton <AppMain> .I.mainCamera.GetComponent <RenderTargetCacher>(); RenderTargetCacher cacher = base.cacher; cacher.onUpdateTexture = (Action <RenderTexture>)Delegate.Combine(cacher.onUpdateTexture, new Action <RenderTexture>(base.OnUpdateTexture)); try { atlasMaterial.SetTexture("_SrcTex", base.cacher.GetTexture()); } catch (UnassignedReferenceException val) { UnassignedReferenceException val2 = val; } }
public static int constructor(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 1) { UnassignedReferenceException o = new UnassignedReferenceException(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (num == 2) { string message; LuaObject.checkType(l, 2, out message); UnassignedReferenceException o = new UnassignedReferenceException(message); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (num == 3) { string message2; LuaObject.checkType(l, 2, out message2); Exception innerException; LuaObject.checkType <Exception>(l, 3, out innerException); UnassignedReferenceException o = new UnassignedReferenceException(message2, innerException); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else { result = LuaObject.error(l, "New object failed."); } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
private Material GetMaterial(Material orig, Shader shader) { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown if (!maskMaterials.TryGetValue(orig, out MaterialEntry value)) { Material val = new Material(shader); try { val.set_mainTexture(orig.get_mainTexture()); } catch (UnassignedReferenceException val2) { UnassignedReferenceException val3 = val2; } val.SetFloat("_Cutoff", cutoff); value = new MaterialEntry(val); maskMaterials.Add(orig, value); } value.refCount++; return(value.material); }