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