if (Input.GetKeyDown(KeyCode.DownArrow)) {
int current_health = 10;
current_health += 30;
Debug.Log("회복물약 사용됨" +current_health);
}
누르면 누를수록 피도 같이 올리고싶은데
10
40
70
100
이런식으로 하고싶은데 이렇게는 그냥 많이 눌러도 10 + 30
인 40
만 자꾸나와요