using UnityEngine; public class HealthPotion : MonoBehaviour { [Header("--- Æ÷¼Ç ¼³Á¤ ---")] [SerializeField] private float healAmount = 30f; // ȸº¹·® // PlayerInteraction¿¡¼­ È£ÃâÇÒ ÇÔ¼ö public void Use(PlayerHealth target) { if (target == null) return; target.Heal(healAmount); // Ç÷¹À̾î ü·Â ȸº¹ Debug.Log($"[Potion] ü·Â {healAmount} ȸº¹!"); Destroy(gameObject); // »ç¿ë ÈÄ ¾ÆÀÌÅÛ »èÁ¦ } }