mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-11-22 05:43:29 +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--) {
|
for (var i = TickingCoroutines.Count - 1; i >= 0; i--) {
|
||||||
var coroutine = TickingCoroutines[i];
|
var coroutine = TickingCoroutines[i];
|
||||||
if (coroutine.Tick(deltaSeconds)) {
|
if (coroutine.Tick(deltaSeconds)) {
|
||||||
TickingCoroutines.RemoveAt(i);
|
TickingCoroutines.Remove(coroutine);
|
||||||
} else if (coroutine.GetCurrentType() != WaitType.Tick) {
|
} else if (coroutine.GetCurrentType() != WaitType.Tick) {
|
||||||
TickingCoroutines.RemoveAt(i);
|
TickingCoroutines.Remove(coroutine);
|
||||||
EventCoroutines.Add(coroutine);
|
EventCoroutines.Add(coroutine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,9 @@ namespace Coroutine {
|
||||||
for (var i = EventCoroutines.Count - 1; i >= 0; i--) {
|
for (var i = EventCoroutines.Count - 1; i >= 0; i--) {
|
||||||
var coroutine = EventCoroutines[i];
|
var coroutine = EventCoroutines[i];
|
||||||
if (coroutine.OnEvent(evt)) {
|
if (coroutine.OnEvent(evt)) {
|
||||||
EventCoroutines.RemoveAt(i);
|
EventCoroutines.Remove(coroutine);
|
||||||
} else if (coroutine.GetCurrentType() != WaitType.Event) {
|
} else if (coroutine.GetCurrentType() != WaitType.Event) {
|
||||||
EventCoroutines.RemoveAt(i);
|
EventCoroutines.Remove(coroutine);
|
||||||
TickingCoroutines.Add(coroutine);
|
TickingCoroutines.Add(coroutine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue