Exemple #1
0
 public void AddCallbackInFrames <T, U>(Action <T, U> callback, T arg1, U arg2, int frameCount = 3)
 {
     if (Actor)
     {
         Actor.AddCallbackInFrames <T, U>(callback, arg1, arg2, frameCount);
     }
 }
Exemple #2
0
 public void AddCallbackInFrames <T, U, W, V>(Action <T, U, W, V> callback, T arg1, U arg2, W arg3, V arg4, int frameCount = 3)
 {
     if (Actor)
     {
         Actor.AddCallbackInFrames <T, U, W, V>(callback, arg1, arg2, arg3, arg4, frameCount);
     }
 }
Exemple #3
0
 /// <summary>
 /// 添加基于帧的回调函数,默认为3帧
 /// </summary>
 /// <param name="callback"></param>
 /// <param name="frameCount"></param>
 public void AddCallbackInFrames(Action callback, int frameCount = 3)
 {
     if (Actor)
     {
         Actor.AddCallbackInFrames(callback, frameCount);
     }
 }