多轮审查和修复
This commit is contained in:
13
Assets/Scripts/Combat/LinearProjectile.cs
Normal file
13
Assets/Scripts/Combat/LinearProjectile.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace BaseGames.Combat
|
||||
{
|
||||
/// <summary>
|
||||
/// 直线抛射物。以固定速度沿 Direction 方向飞行,无重力。
|
||||
/// </summary>
|
||||
public class LinearProjectile : Projectile
|
||||
{
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
_rb.velocity = Direction * _config.Speed;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user