摄像机区域的架构改动
This commit is contained in:
15
Assets/_Game/Scripts/Camera/ICameraService.cs
Normal file
15
Assets/_Game/Scripts/Camera/ICameraService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace BaseGames.Camera
|
||||
{
|
||||
/// <summary>
|
||||
/// 相机服务接口。供 CameraTriggerZone 等调用,
|
||||
/// 通过 ServiceLocator.Get<ICameraService>() 访问,无需直接依赖 CameraStateController。
|
||||
/// </summary>
|
||||
public interface ICameraService
|
||||
{
|
||||
/// <summary>
|
||||
/// 切换到目标相机区域。
|
||||
/// 区域有专有 VCam 时激活它(高优先级);无专有 VCam 时由全局双 VCam 交替承接。
|
||||
/// </summary>
|
||||
void SwitchArea(CameraArea targetArea);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user