using UnityEngine; public class SoldierManager : MonoBehaviour { private float baseAttackPower = 100f; private float currentAttackPower; void Start() { currentAttackPower = baseAttackPower; } public void ApplyAttackPenalty(float percent) { currentAttackPower = baseAttackPower * (1f - percent); } public void ResetAttackPower() { currentAttackPower = baseAttackPower; } public float GetCurrentAttackPower() => currentAttackPower; }