14 lines
332 B
C#
14 lines
332 B
C#
namespace BaseGames.Combat
|
|
{
|
|
/// <summary>
|
|
/// 直线抛射物。以固定速度沿 Direction 方向飞行,无重力。
|
|
/// </summary>
|
|
public class LinearProjectile : Projectile
|
|
{
|
|
protected override void OnInitialized()
|
|
{
|
|
_rb.velocity = Direction * _config.Speed;
|
|
}
|
|
}
|
|
}
|