示例#1
0
 private void OneGroupSelection(SelectionTask selectionTask)
 {
     view.Highlight(selectionTask.objectsForSelection[genericSwitchIndx], secondaryCursor); //This switchs rapidly between to make a see through effect. we need to add see through sprites so that we dont have to do this
     genericSwitchIndx++;
     if (genericSwitchIndx >= selectionTask.objectsForSelection.Count)
     {
         genericSwitchIndx = 0;
     }
     if (MultiInput.GetAButtonDown())
     {
         List <GameObject> tempSelectedObjects = new List <GameObject>();
         tempSelectedObjects = selectObject.ByEntireGroup(selectionTask.objectsForSelection);
         EndManualSelection(selectionTask, tempSelectedObjects);
         secondaryCursor.SetActive(false);
     }
 }