feat: added new yields

This commit is contained in:
2026-01-31 13:06:57 +03:00
parent 913af2a4a4
commit 882f9e8b29
4 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
using System;
namespace Engine.Core;
public class WaitUntilYield(Func<bool> condition) : ICoroutineYield
{
private readonly Func<bool> condition = condition;
public bool Yield() => !condition.Invoke();
}