/// <summary> /// Removes the watch from the list. /// </summary> /// <param name="aWatch">The triggering watch.</param> public static void RemoveWatch(IDebugWatch aWatch) { if (instance == null) { LogError(MISSING_DEBUG_UTILS); return; } if (aWatch != null) { instance.m_Watches.Remove(aWatch); } }
/// <summary> /// Adds a watch to the list for drawing. Multiple watches of the same reference cannot be added. /// </summary> /// <param name="aWatch">The watch to add.</param> public static void AddWatch(IDebugWatch aWatch) { if (instance == null) { LogError(MISSING_DEBUG_UTILS); return; } if (aWatch != null && instance.m_Watches.Contains(aWatch) == false) { instance.m_Watches.Add(aWatch); } }