예제 #1
0
        public static void RemoveInputDragUI(IInputObjectUIDrag uiInputDrag)
        {
            var name = uiInputDrag.GetUIDragName();

            if (_UIDrags.ContainsKey(name))
            {
                _UIDrags.Remove(name);
            }
        }
예제 #2
0
 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");
     }
 }