로딩
티스토리 데이터 처리 중입니다.

[유니티C#][기초] 11. 적에게 체력 부여하기

 [유니티C#][기초] 11. 적에게 체력 부여하기

1234567891011121314151617181920212223242526272829303132using System.Collections;using System.Collections.Generic;using UnityEngine; public class EnemyHealth : MonoBehaviour{ public int maxHealth = 100; public int currentHealth; private ParticleSystem hitParticle; public void Awake() { currentHealth = maxHealth; hitParticle = GetComponentInChildren(); } public void TakeDamage(int damage, Vector3 .....