Exemplo n.º 1
0
 /// <summary>
 /// The method that invoked when double click.
 /// </summary>
 private void DoubleClick()
 {
     if (Input.GetMouseButtonDown(0))
     {
         _fieldController.DoubleClickRectangle(_mousePos); // delete rectangle by mouse position.
     }
     else if (Input.GetMouseButtonDown(1))
     {
         _fieldController.DoubleClickConnection(_mousePos); // delete connection by mouse position.
     }
 }