public void UpdateHud() { playerBattleHUD.SetHUD(playerUnit, playerUnit.GetTurnPos()); if (targetedEnemyUnit != null) { enemyBattleHUD.SetHUD(targetedEnemyUnit, targetedEnemyUnit.GetTurnPos()); turnSliders.UpdateTurnBar(playerUnit, enemies); if (targetedEnemyUnit.statusEffect != null) { enemyBattleHUD.SetStatusEffect(targetedEnemyUnit.statusEffect); } else { enemyBattleHUD.SetStatusEffect(); } } if (playerUnit.statusEffect != null) { playerBattleHUD.SetStatusEffect(playerUnit.statusEffect); } else { playerBattleHUD.SetStatusEffect(); } HUDUpdated.Raise(); }