SHA256
16 lines
387 B
C#
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;
|
|
}
|
|
} |