Add new coroutine util
This commit is contained in:
parent
8fd0b58639
commit
7e8b8e3fb2
@ -32,7 +32,7 @@ namespace NEG.Utils
|
|||||||
yield return WaitForEndOfFrame;
|
yield return WaitForEndOfFrame;
|
||||||
action?.Invoke();
|
action?.Invoke();
|
||||||
}
|
}
|
||||||
|
public static void ActionAtNextFrame(this MonoBehaviour mono, Action action) => mono.StartCoroutine(ActionAtNextFrame(action));
|
||||||
public static IEnumerator ActionAtNextFrame(Action action)
|
public static IEnumerator ActionAtNextFrame(Action action)
|
||||||
{
|
{
|
||||||
yield return null;
|
yield return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user