Continue working on level manager split
This commit is contained in:
parent
47b8c1cc50
commit
92cbe3dd8c
@ -38,5 +38,13 @@ namespace NEG.Utils
|
||||
yield return null;
|
||||
action?.Invoke();
|
||||
}
|
||||
|
||||
public static void ActionAfterTime(this MonoBehaviour mono, float time, Action action) => mono.StartCoroutine(ActionAfterTime(time, action));
|
||||
|
||||
public static IEnumerator ActionAfterTime(float time, Action action)
|
||||
{
|
||||
yield return new WaitForSeconds(time);
|
||||
action?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user