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