public static void Remove(GTAction action) { if (action == null) { return; } s_DelList.Add(action); }
public static GTAction Get(Animator animator) { if (animator == null) { return(null); } GTAction action = null; s_Actions.TryGetValue(animator, out action); if (action == null) { action = new GTAction(animator); s_Actions[animator] = action; } return(action); }
void FixedUpdate() { GTAction.Update(); }
public void PlayAnim(string animName, Callback onFinish) { GTAction.Get(mAnimator).Play(animName, onFinish); }