public void StopPanelWidget(Object p, Object w) { if (!((Behaviour)this).get_enabled()) { return; } int instanceId1 = p.GetInstanceID(); int instanceId2 = w.GetInstanceID(); UITimingDict uiTimingDict = (UITimingDict)null; if (!this.m_widgetTicks.TryGetValue(instanceId1, out uiTimingDict)) { return; } if (!UIDebugCache.s_parentNameLut.ContainsKey(w.GetInstanceID())) { UIDebugCache.s_parentNameLut.Add(w.GetInstanceID(), p.get_name()); } double num = uiTimingDict.StopTiming(w); if (this.m_accumulated.ContainsKey(instanceId2)) { Dictionary <int, double> accumulated; int index; (accumulated = this.m_accumulated)[index = instanceId2] = accumulated[index] + num; } else { this.m_accumulated.Add(instanceId2, num); } }
public void StopPanelWidget(UnityEngine.Object p, UnityEngine.Object w) { if (!enabled) { return; } int pInstID = p.GetInstanceID(); int wInstID = w.GetInstanceID(); UITimingDict td = null; if (!m_widgetTicks.TryGetValue(pInstID, out td)) { return; } if (!UIDebugCache.s_parentNameLut.ContainsKey(w.GetInstanceID())) { UIDebugCache.s_parentNameLut.Add(w.GetInstanceID(), p.name); } double ms = td.StopTiming(w); if (m_accumulated.ContainsKey(wInstID)) { m_accumulated[wInstID] += ms; } else { m_accumulated.Add(wInstID, ms); } }