You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace SUISSEngine
- {
- public abstract class Timer
- {
- public Timer(Action action)
- {
- this._action = action;
- this._cancelled = false;
- }
-
- public Action Action
- {
- get
- {
- return this._action;
- }
- }
-
- public bool IsCancelled
- {
- get
- {
- return this._cancelled;
- }
- }
-
- public virtual void Cancel()
- {
- this._cancelled = true;
- this._action = null;
- }
-
- protected Action _action;
-
- protected bool _cancelled;
- }
- }
|