Files
WildRoot/Assets/Script/Shield.cs
T

13 lines
219 B
C#
Raw Normal View History

2026-04-14 17:06:58 +09:00
using UnityEngine;
public class Shield : MonoBehaviour
{ private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Bullet"))
{
Destroy(other.gameObject);
}
}
}