diff --git a/DungeonShooting_Godot/src/framework/activity/WaitForFixedProcess.cs b/DungeonShooting_Godot/src/framework/activity/WaitForFixedProcess.cs deleted file mode 100644 index 6bcb96e..0000000 --- a/DungeonShooting_Godot/src/framework/activity/WaitForFixedProcess.cs +++ /dev/null @@ -1,19 +0,0 @@ - -/// -/// 用于协程返回, 表示当前协程等待指定帧数 -/// -public class WaitForFixedProcess -{ - private float _frames; - private float _current = 0; - - public WaitForFixedProcess(int frames) - { - _frames = frames; - } - - public bool NextStep() - { - return _current++ >= _frames; - } -} \ No newline at end of file diff --git a/DungeonShooting_Godot/src/framework/activity/WaitForSeconds.cs b/DungeonShooting_Godot/src/framework/activity/WaitForSeconds.cs deleted file mode 100644 index 3da00fc..0000000 --- a/DungeonShooting_Godot/src/framework/activity/WaitForSeconds.cs +++ /dev/null @@ -1,25 +0,0 @@ - -/// -/// 用于协程返回, 表示当前协程等待指定秒数 -/// -public class WaitForSeconds -{ - private float _timer; - private float _current = 0; - - public WaitForSeconds(float time) - { - _timer = time; - } - - public bool NextStep(float delta) - { - if (_current >= _timer) - { - return true; - } - - _current += delta; - return false; - } -} \ No newline at end of file diff --git a/DungeonShooting_Godot/src/framework/coroutine/WaitForFixedProcess.cs b/DungeonShooting_Godot/src/framework/coroutine/WaitForFixedProcess.cs new file mode 100644 index 0000000..6bcb96e --- /dev/null +++ b/DungeonShooting_Godot/src/framework/coroutine/WaitForFixedProcess.cs @@ -0,0 +1,19 @@ + +/// +/// 用于协程返回, 表示当前协程等待指定帧数 +/// +public class WaitForFixedProcess +{ + private float _frames; + private float _current = 0; + + public WaitForFixedProcess(int frames) + { + _frames = frames; + } + + public bool NextStep() + { + return _current++ >= _frames; + } +} \ No newline at end of file diff --git a/DungeonShooting_Godot/src/framework/coroutine/WaitForSeconds.cs b/DungeonShooting_Godot/src/framework/coroutine/WaitForSeconds.cs new file mode 100644 index 0000000..3da00fc --- /dev/null +++ b/DungeonShooting_Godot/src/framework/coroutine/WaitForSeconds.cs @@ -0,0 +1,25 @@ + +/// +/// 用于协程返回, 表示当前协程等待指定秒数 +/// +public class WaitForSeconds +{ + private float _timer; + private float _current = 0; + + public WaitForSeconds(float time) + { + _timer = time; + } + + public bool NextStep(float delta) + { + if (_current >= _timer) + { + return true; + } + + _current += delta; + return false; + } +} \ No newline at end of file