Пример #1
0
 public void ViewActiveUnitInGame(
     UnitStatsSO unitStats,
     UnitCombatSystem.Team team
     )
 {
     if (team == UnitCombatSystem.Team.Left)
     {
         unitNameLeftGame.text      = unitStats.unitName;
         hpLeftGameGame.text        = $"{unitStats.maxHealth}";
         attackLeftGame.text        = $"{unitStats.damage}";
         attackRangeLeftGame.text   = $"{unitStats.attackRange}";
         movementRangeLeftGame.text = $"{unitStats.movementRange}";
     }
     else
     {
         unitNameRightGame.text      = unitStats.unitName;
         hpRightGame.text            = $"{unitStats.maxHealth}";
         attackRightGame.text        = $"{unitStats.damage}";
         attackRangeRightGame.text   = $"{unitStats.attackRange}";
         movementRangeRightGame.text = $"{unitStats.movementRange}";
     }
 }
Пример #2
0
 public void ViewClickedUnitStatsDraftPick(
     UnitStatsSO unitStats,
     UnitCombatSystem.Team team
     )
 {
     if (team == UnitCombatSystem.Team.Left)
     {
         unitNameLeftDraft.text      = unitStats.unitName;
         hpLeftDraft.text            = $"{unitStats.maxHealth}";
         attackLeftDraft.text        = $"{unitStats.damage}";
         attackRangeLeftDraft.text   = $"{unitStats.attackRange}";
         movementRangeLeftDraft.text = $"{unitStats.movementRange}";
     }
     else
     {
         unitNameRightDraft.text      = unitStats.unitName;
         hpRightDraft.text            = $"{unitStats.maxHealth}";
         attackRightDraft.text        = $"{unitStats.damage}";
         attackRangeRightDraft.text   = $"{unitStats.attackRange}";
         movementRangeRightDraft.text = $"{unitStats.movementRange}";
     }
 }