public override bool DragMouseMethod(Vector3 mouseDown, Vector3 mouseUp)
 {
     //print ("finishing from cell: " + GridHelper.GetGridCell (mouseDown).arrayPosition + " to position " + GridHelper.GetGridCell (mouseUp).arrayPosition);
     selectGridCell.UpdateOff();
     areaBuild3D.ShowOnRelease(mouseDown, mouseUp);
     return(true);
 }
예제 #2
0
 public void UpdateEnable(bool enabled)
 {
     if (enabled)
     {
         // first check if we're raycasting anything: people/structures/gridcells
         selectGridCell.UpdateOn();
     }
     else
     {
         selectGridCell.UpdateOff();
     }
 }