Files
ADOFAIRenderer/Util/WaitForFrames.cs
T
2026-05-21 18:31:44 +09:00

16 lines
387 B
C#

using UnityEngine;
namespace ADOFAIRenderer.Util
{
public class WaitForFrames : CustomYieldInstruction
{
private readonly int _targetFrameCount;
public WaitForFrames(int numberOfFrames)
{
_targetFrameCount = Time.frameCount + numberOfFrames;
}
public override bool keepWaiting => Time.frameCount < _targetFrameCount;
}
}