using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; public class SkillHeal : MonoBehaviour { [SerializeField] private PlayerHP playerHP; //체력 [SerializeField] private PlayerGold playerGold; // 체력 회복 후 쓰이는 돈 [SerializeField] private int healpotion = 500; // 체력 회복 물약 가격 [SerializeField] private int heal = 1; // 힐 [SerializeField] private Image imageScreen; // 녹색 이미지 배경 public void HealDamage() //체력 물약 스킬 { if (playerHP.currentHP >= playerHP.MaxHP) { return; } playerHP.currentHP += heal; playerGold.CurrentGold = playerGold.currentGold - healpotion; } }