Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="clip"></param>
 /// <param name="animEvtReceiverObject"></param>
 /// <param name="atPosition"></param>
 /// <param name="callback"></param>
 public static void UnbindCallback(this AnimationClip clip, GameObject animEvtReceiverObject, float atPosition, Action callback)
 {
     clip.BindOrUnbindCallback(animEvtReceiverObject, atPosition, callback, false);
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="clip"></param>
 /// <param name="animEvtReceiverObject"></param>
 /// <param name="atPosition"></param>
 /// <param name="callback"></param>
 /// <returns></returns>
 public static bool BindCallback(this AnimationClip clip, GameObject animEvtReceiverObject, float atPosition, Action callback)
 {
     return(clip.BindOrUnbindCallback(animEvtReceiverObject, atPosition, callback, true));
 }