/// <summary>.</summary> public void Play() { if (this._status != ESchedulerStatus.Play) { this._timer.Start(); this._status = ESchedulerStatus.Play; } }
/// <summary>.</summary> public void Pause() { if (this._status == ESchedulerStatus.Play) { this._status = ESchedulerStatus.Pause; this._timer.Stop(); } }
/// <summary>.</summary> public void Stop() { if (this._status != ESchedulerStatus.Stop) { this._status = ESchedulerStatus.Stop; this._timer.Reset(); this._step = 0; this.Clear(); } }
private void Init() { if (!this._initialized) { this._runningCorouts = this._runningCorouts ?? new List <Corout>(); this._coroutsToRemove = this._coroutsToRemove ?? new Queue <Corout>(); this._timer = this._timer ?? new Stopwatch(); this._timer.Reset(); this._step = 0; this._status = ESchedulerStatus.Stop; this._initialized = true; } }
private void Init() { if (!this._initialized) { this._runningCorouts = this._runningCorouts ?? new List<Corout>(); this._coroutsToRemove = this._coroutsToRemove ?? new Queue<Corout>(); this._timer = this._timer ?? new Stopwatch(); this._timer.Reset(); this._step = 0; this._status = ESchedulerStatus.Stop; this._initialized = true; } }
/// <summary>.</summary> public void Stop() { if (this._status != ESchedulerStatus.Stop) { this._status = ESchedulerStatus.Stop; this._timer.Reset(); this._step = 0; this.Clear(); } }
/// <summary>.</summary> public void Play() { if (this._status != ESchedulerStatus.Play) { this._timer.Start(); this._status = ESchedulerStatus.Play; } }
/// <summary>.</summary> public void Pause() { if (this._status == ESchedulerStatus.Play) { this._status = ESchedulerStatus.Pause; this._timer.Stop(); } }