public static void RemoveInputDragUI(IInputObjectUIDrag uiInputDrag) { var name = uiInputDrag.GetUIDragName(); if (_UIDrags.ContainsKey(name)) { _UIDrags.Remove(name); } }
public static void AssignInputDragUI(string uiDragName, IInputObjectUIDrag uiInputDrag) { if (!_UIDrags.ContainsKey(uiDragName)) { _UIDrags[uiDragName] = uiInputDrag; } else { Debug.LogWarning("error trying to add a new Input Drag UI object \"" + uiDragName + "\", key already contained"); } }