public void SetSlider(CharacterController player, CharacterController enemy) { playerHpSlider.maxValue = player.RemainHP(); playerApSlider.maxValue = player.RemainAP(); enemyHpSlider.maxValue = enemy.RemainHP(); enemyApSlider.maxValue = enemy.RemainAP(); }
public void UpdateTargetApSlider(CharacterController player) { if (isEnemyMax == true) { enemyApSlider.value = player.RemainAP(); secondPlayerAP.text = "(" + enemyApSlider.value.ToString() + "/" + enemyApSlider.maxValue.ToString() + ")"; } }
public void UpdatePlayerApSlider(CharacterController player) { if (isPlayerMax == true) { playerApSlider.value = player.RemainAP(); firstPlayerAP.text = "(" + playerApSlider.value.ToString() + "/" + playerApSlider.maxValue.ToString() + ")"; } }