Keeps checking the given predicate and fires the given action when the predicate is true.
MyCoolMod.cs
public class MyCoolMod : ModBehaviour { public bool Check() { return EntitlementsManager.IsDlcOwned() != EntitlementsManager.AsyncOwnershipStatus.NotReady; } public void Start() { ModHelper.Events.Unity.RunWhen(Check, () => { var ownsDLC = EntitlementsManager.IsDlcOwned() == EntitlementsManager.AsyncOwnershipStatus.Owned? "does" : "doesn't"; ModHelper.Console.WriteLine($"The player {ownsDLC} own the DLC!"); }); }}