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; } }