mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 将所有小写的命名空间导入更正为首字母大写格式 - 统一 GFramework 框架的命名空间引用规范 - 修复 core、ecs、godot 等模块的命名空间导入错误 - 标准化文档示例代码中的 using 语句格式 - 确保所有文档中的命名空间引用保持一致性 - 更新 global using 语句以匹配正确的命名空间格式
28 lines
842 B
C#
28 lines
842 B
C#
namespace GFramework.Godot.Coroutine;
|
||
|
||
/// <summary>
|
||
/// 定义协程执行的不同时间段枚举
|
||
/// </summary>
|
||
public enum Segment
|
||
{
|
||
/// <summary>
|
||
/// 普通处理阶段,在每一帧的常规处理过程中执行(默认用于游戏级协程)
|
||
/// </summary>
|
||
Process,
|
||
|
||
/// <summary>
|
||
/// 在暂停状态下仍然执行的处理阶段,适合暂停菜单等需要继续更新的UI级协程
|
||
/// </summary>
|
||
ProcessIgnorePause,
|
||
|
||
/// <summary>
|
||
/// 物理处理阶段,在物理更新循环中执行,通常用于需要与物理引擎同步的操作
|
||
/// </summary>
|
||
PhysicsProcess,
|
||
|
||
/// <summary>
|
||
/// 延迟处理阶段,在当前帧结束后延迟执行,通常用于需要等待当前帧完成后再执行的操作
|
||
/// </summary>
|
||
DeferredProcess
|
||
}
|