2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
411 B
C#

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;
}
}
}