mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-11-24 22:28:34 +01:00
test
This commit is contained in:
parent
99aab497e5
commit
53e10da875
1 changed files with 4 additions and 4 deletions
|
@ -34,9 +34,9 @@ namespace Coroutine {
|
|||
for (var i = TickingCoroutines.Count - 1; i >= 0; i--) {
|
||||
var coroutine = TickingCoroutines[i];
|
||||
if (coroutine.Tick(deltaSeconds)) {
|
||||
TickingCoroutines.RemoveAt(i);
|
||||
TickingCoroutines.Remove(coroutine);
|
||||
} else if (coroutine.GetCurrentType() != WaitType.Tick) {
|
||||
TickingCoroutines.RemoveAt(i);
|
||||
TickingCoroutines.Remove(coroutine);
|
||||
EventCoroutines.Add(coroutine);
|
||||
}
|
||||
}
|
||||
|
@ -46,9 +46,9 @@ namespace Coroutine {
|
|||
for (var i = EventCoroutines.Count - 1; i >= 0; i--) {
|
||||
var coroutine = EventCoroutines[i];
|
||||
if (coroutine.OnEvent(evt)) {
|
||||
EventCoroutines.RemoveAt(i);
|
||||
EventCoroutines.Remove(coroutine);
|
||||
} else if (coroutine.GetCurrentType() != WaitType.Event) {
|
||||
EventCoroutines.RemoveAt(i);
|
||||
EventCoroutines.Remove(coroutine);
|
||||
TickingCoroutines.Add(coroutine);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue