2e4370481b
1. 총알피하기 게임 제작 2. 시간별로 단계 설정 3. 시작화면 및 이펙트, 사운드 삽입
13 lines
219 B
C#
13 lines
219 B
C#
using UnityEngine;
|
|
|
|
public class Shield : MonoBehaviour
|
|
{ private void OnTriggerEnter(Collider other)
|
|
{
|
|
|
|
if (other.CompareTag("Bullet"))
|
|
{
|
|
Destroy(other.gameObject);
|
|
}
|
|
}
|
|
}
|