public void Connect(string path, int from_id, int ack_prefix) { temporaryQueue.Clear(); resendPackets.Clear(); relayServer = path; fromId = from_id; ackPrefix = ack_prefix; NativeConnect(relayServer); }
public static void ClearPoolObjects() { if (materialCaches != null) { materialCaches.Clear(); materialCaches = null; } }
public static UIntKeyTable <T> CreateUIntKeyTable <T>(string text, CallBackUIntKeyReadCSV <T> cb, string name_table, Progress progress = null) where T : new() { UIntKeyTable <T> uIntKeyTable = new UIntKeyTable <T>(); if (!AddUIntKeyTable(uIntKeyTable, text, cb, name_table, progress)) { uIntKeyTable.Clear(); } return(uIntKeyTable); }
public static UIntKeyTable <List <T> > CreateUIntKeyListTable <T>(string text, CallBackUIntKeyReadCSV <T> cb, string name_table) where T : new() { UIntKeyTable <List <T> > uIntKeyTable = new UIntKeyTable <List <T> >(); if (!AddUIntKeyListTable(uIntKeyTable, text, cb, name_table)) { uIntKeyTable.Clear(); } return(uIntKeyTable); }
public static void ChangeLightShader(Transform root) { //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Expected O, but got Unknown UIntKeyTable <Material> uIntKeyTable = new UIntKeyTable <Material>(); List <Renderer> list = new List <Renderer>(); root.GetComponentsInChildren <Renderer>(true, list); int i = 0; for (int count = list.Count; i < count; i++) { Renderer val = list[i]; Material[] sharedMaterials = val.get_sharedMaterials(); int j = 0; for (int num = sharedMaterials.Length; j < num; j++) { Material val2 = sharedMaterials[j]; if (val2 != null && val2.get_shader() != null) { Material val3 = uIntKeyTable.Get((uint)val2.GetInstanceID()); if (val3 != null) { sharedMaterials[j] = val3; } else { string name = val2.get_shader().get_name(); if (!name.EndsWith("__l")) { Shader val4 = ResourceUtility.FindShader(name + "__l"); if (val4 != null) { val3 = new Material(val2); val3.set_shader(val4); sharedMaterials[j] = val3; uIntKeyTable.Add((uint)val2.GetInstanceID(), val3); continue; } } uIntKeyTable.Add((uint)val2.GetInstanceID(), val2); } } } val.set_sharedMaterials(sharedMaterials); } uIntKeyTable.Clear(); list.Clear(); }