コード例 #1
0
 public static EaseObject Callback(this EaseObject obj, EventHandler handler)
 {
     if (obj != null && handler != null)
     {
         obj.Complete += (eo, p) => handler(eo, EventArgs.Empty);
     }
     return(obj);
 }
コード例 #2
0
 public static EaseObject OnBegin(this EaseObject obj, EaseObjectHandler handler)
 {
     if (obj != null && handler != null)
     {
         obj.Begin += handler;
     }
     return(obj);
 }
コード例 #3
0
 public static EaseObject OnStopped(this EaseObject obj, EaseObjectHandler handler)
 {
     if (obj != null && handler != null)
     {
         obj.Stopped += handler;
     }
     return(obj);
 }
コード例 #4
0
 public static EaseObject OnUpdate(this EaseObject obj, EaseObjectHandler handler)
 {
     if (obj != null && handler != null)
     {
         obj.Update += handler;
     }
     return(obj);
 }