public void Resume() { VerifyRootClock(); beginTime = rootClock.Time - pauseOffset; rootClock.AddClock(this); Tick(rootClock.Time); }
public void Begin(IRootClock rootClock) { this.rootClock = rootClock; VerifyRootClock(); beginTime = rootClock.Time; currentFillBehavior = Timeline.FillBehavior; rootClock.AddClock(this); Tick(rootClock.Time); }
public void AddClock(IClock clock) { if (clocks.Contains(clock)) { return; } clocks.Add(clock); if (IsConnected) { rootClock.AddClock(clock); } }