Exemplo n.º 1
0
 private void SetOpeartion(IAreaOperation operation)
 {
     if (m_Operation != null)
     {
         if (m_Operation.GetType() == operation.GetType())
         {
             return;
         }
         else
         {
             m_Operation.End();
         }
     }
     m_Operation   = operation;
     m_OnDrag      = m_Operation.Drag;
     m_OnClick     = m_Operation.Click;
     m_OnDragBegin = m_Operation.DragBegin;
     m_OnDragEnd   = m_Operation.DragEnd;
     m_Operation.Begin();
 }
Exemplo n.º 2
0
 private void SetOpeartion(IAreaOperation operation)
 {
     if(m_Operation != null)
     {
         if (m_Operation.GetType() == operation.GetType())
             return;
         else
             m_Operation.End();
     }
     m_Operation = operation;
     m_OnDrag = m_Operation.Drag;
     m_OnClick = m_Operation.Click;
     m_OnDragBegin = m_Operation.DragBegin;
     m_OnDragEnd = m_Operation.DragEnd;
     m_Operation.Begin();
 }