예제 #1
0
 void OnSelectionChanged(MapSelection selection)
 {
     if (!selection.IsSelectionValid)
     {
         this.SelectionTileAreaView.ClearTarget();
     }
     else
     {
         this.SelectionTileAreaView.SetTarget(this.Environment, selection.SelectionBox);
     }
 }
예제 #2
0
 void AbortSelection()
 {
     m_state        = State.None;
     this.Selection = new MapSelection();
 }
예제 #3
0
 void StartSelection(IntVector3 p, State state)
 {
     m_state        = state;
     this.Selection = new MapSelection(p, p);
 }