using Entitas; using UnityEngine; [Game] public class BulletComponent : IComponent { public Vector3 CastDir;//释放方向 public string Timeline; } namespace Game { public abstract partial class Util { public static void ClearBullet(GameEntity entity) { var bullet = entity.bullet; bullet.CastDir = Vector3.zero; } } }