コード例 #1
0
 private void SelectUnit(GameUnit unit)
 {
     Debug.Log("Source Unit Selected");
     if (selectedUnit != null)
     {
         Debug.Log("Deselecting Unit");
         selectedUnit.SetUnitSelected(false);
         playerUI.ClearSkillBar();
     }
     selectedUnit = unit;
     selectedUnit.SetUnitSelected(true);
     playerUI.PopulateSkillBar(unit);
 }