多轮审查和修复
This commit is contained in:
17
Assets/Scripts/Combat/IProjectileService.cs
Normal file
17
Assets/Scripts/Combat/IProjectileService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BaseGames.Combat
|
||||
{
|
||||
/// <summary>
|
||||
/// 抛射物服务接口。通过 ServiceLocator 注册,供敌人 AI 生成追踪弹使用。
|
||||
/// </summary>
|
||||
public interface IProjectileService
|
||||
{
|
||||
/// <summary>当前缓存的玩家 Transform,生成追踪弹时注入目标。</summary>
|
||||
Transform PlayerTransform { get; }
|
||||
|
||||
/// <summary>完整初始化一枚 HomingProjectile 并注入追踪目标。</summary>
|
||||
void LaunchHoming(HomingProjectile proj, Vector2 direction,
|
||||
ProjectileConfigSO config, DamageInfo damageInfo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user