Exemple #1
0
 public static void     Remove(GTAction action)
 {
     if (action == null)
     {
         return;
     }
     s_DelList.Add(action);
 }
Exemple #2
0
    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);
    }
Exemple #3
0
 void FixedUpdate()
 {
     GTAction.Update();
 }
 public void PlayAnim(string animName, Callback onFinish)
 {
     GTAction.Get(mAnimator).Play(animName, onFinish);
 }