scripts
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.UIElements
|
||||
{
|
||||
// Token: 0x0200033F RID: 831
|
||||
public struct ScheduleBuilder
|
||||
{
|
||||
// Token: 0x06003388 RID: 13192 RVA: 0x00050DAC File Offset: 0x0004EFAC
|
||||
internal ScheduleBuilder(ScheduledItem scheduledItem)
|
||||
{
|
||||
this.m_ScheduledItem = scheduledItem;
|
||||
}
|
||||
|
||||
// Token: 0x06003389 RID: 13193 RVA: 0x00050DB8 File Offset: 0x0004EFB8
|
||||
public ScheduleBuilder StartingIn(long delay)
|
||||
{
|
||||
if (this.m_ScheduledItem != null)
|
||||
{
|
||||
this.m_ScheduledItem.delay = delay;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600338A RID: 13194 RVA: 0x00050DEC File Offset: 0x0004EFEC
|
||||
public ScheduleBuilder Every(long interval)
|
||||
{
|
||||
if (this.m_ScheduledItem != null)
|
||||
{
|
||||
this.m_ScheduledItem.interval = interval;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600338B RID: 13195 RVA: 0x00050E20 File Offset: 0x0004F020
|
||||
public ScheduleBuilder Until(Func<bool> condition)
|
||||
{
|
||||
if (this.m_ScheduledItem != null)
|
||||
{
|
||||
ScheduledItem scheduledItem = this.m_ScheduledItem;
|
||||
scheduledItem.timerUpdateStopCondition = (Func<bool>)Delegate.Combine(scheduledItem.timerUpdateStopCondition, condition);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x04000AA4 RID: 2724
|
||||
private readonly ScheduledItem m_ScheduledItem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user