Ejemplo n.º 1
0
 public void Select(DraggableGUI _selected)
 {
     if (m_current != null)
     {
         m_current.DeSelect();
     }
     m_current = _selected;
 }
Ejemplo n.º 2
0
 void Update()
 {
     if (Input.GetMouseButtonUp(0) && m_current != null)
     {
         m_current.DeSelect();
         m_current = null;
     }
 }
Ejemplo n.º 3
0
 public void RegisterDraggable(DraggableGUI _instance)
 {
     m_draggables.Add(_instance);
 }