using System; using UnityEngine; namespace Entity { public class Bullet:Entity { protected override void AutoBehave() { TryMove(); } private void OnTriggerEnter2D(Collider2D other) { other.GetComponent()?.OnHit(this); } } }