예제 #1
0
 public void Prime(List <Unit> units)
 {
     clearDisplays();
     foreach (var unit in units)
     {
         UnitDisplay display = (UnitDisplay)Instantiate(unitDisplayPrefab);
         display.transform.SetParent(targetTransform, false);
         display.Prime(unit);
         display.onClick += Display_onClick;
         unitDisplays.Add(display);
     }
 }