using System; using Syntriax.Engine.Core.Abstract; namespace Syntriax.Engine.Core; public class CoroutineYield(Func condition) : ICoroutineYield { private readonly Func condition = condition; public bool Yield() => condition.Invoke(); }