// Token: 0x0600493D RID: 18749 RVA: 0x0011761C File Offset: 0x0011581C
 private void Play(bool forward)
 {
     if (this.target == null)
     {
         this.target = base.GetComponentInChildren <Animation>();
     }
     if (this.target != null)
     {
         if (this.clearSelection && global::UICamera.selectedObject == base.gameObject)
         {
             global::UICamera.selectedObject = null;
         }
         int num = (int)(-(int)this.playDirection);
         AnimationOrTween.Direction direction       = (AnimationOrTween.Direction)((!forward) ? num : ((int)this.playDirection));
         global::ActiveAnimation    activeAnimation = global::ActiveAnimation.Play(this.target, this.clipName, direction, this.ifDisabledOnPlay, this.disableWhenFinished);
         if (this.resetOnPlay)
         {
             activeAnimation.Reset();
         }
         if (this.eventReceiver != null && !string.IsNullOrEmpty(this.callWhenFinished))
         {
             activeAnimation.eventReceiver    = this.eventReceiver;
             activeAnimation.callWhenFinished = this.callWhenFinished;
         }
     }
 }
    // Token: 0x06004A12 RID: 18962 RVA: 0x0011D7C4 File Offset: 0x0011B9C4
    public static global::ActiveAnimation Play(Animation anim, string clipName, AnimationOrTween.Direction playDirection, AnimationOrTween.EnableCondition enableBeforePlay, AnimationOrTween.DisableCondition disableCondition)
    {
        if (!anim.gameObject.activeInHierarchy)
        {
            if (enableBeforePlay != AnimationOrTween.EnableCondition.EnableThenPlay)
            {
                return(null);
            }
            global::NGUITools.SetActive(anim.gameObject, true);
        }
        global::ActiveAnimation activeAnimation = anim.GetComponent <global::ActiveAnimation>();

        if (activeAnimation != null)
        {
            activeAnimation.enabled = true;
        }
        else
        {
            activeAnimation = anim.gameObject.AddComponent <global::ActiveAnimation>();
        }
        activeAnimation.mAnim             = anim;
        activeAnimation.mDisableDirection = (AnimationOrTween.Direction)disableCondition;
        activeAnimation.Play(clipName, playDirection);
        return(activeAnimation);
    }