public static EaseObject Callback(this EaseObject obj, EventHandler handler) { if (obj != null && handler != null) { obj.Complete += (eo, p) => handler(eo, EventArgs.Empty); } return(obj); }
public static EaseObject OnBegin(this EaseObject obj, EaseObjectHandler handler) { if (obj != null && handler != null) { obj.Begin += handler; } return(obj); }
public static EaseObject OnStopped(this EaseObject obj, EaseObjectHandler handler) { if (obj != null && handler != null) { obj.Stopped += handler; } return(obj); }
public static EaseObject OnUpdate(this EaseObject obj, EaseObjectHandler handler) { if (obj != null && handler != null) { obj.Update += handler; } return(obj); }