SHA256
Initial Commit
This commit is contained in:
commit
44a22ae103
19 files changed
+772
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class WaitForFrames : CustomYieldInstruction
|
||||
{
|
||||
private int _targetFrameCount;
|
||||
|
||||
public WaitForFrames(int numberOfFrames)
|
||||
{
|
||||
_targetFrameCount = Time.frameCount + numberOfFrames;
|
||||
}
|
||||
|
||||
public override bool keepWaiting => Time.frameCount < _targetFrameCount;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user