示例#1
0
 // Token: 0x06000F00 RID: 3840 RVA: 0x000090A8 File Offset: 0x000072A8
 private void GLLCQQCCGOG()
 {
     if (this.eventReceiver != null && EventDelegate.CPPLNKNPLPI(this.KCQKMKOQLQL))
     {
         this.eventReceiver    = null;
         this.callWhenFinished = null;
     }
 }
示例#2
0
    // Token: 0x06000E6D RID: 3693 RVA: 0x00073C24 File Offset: 0x00071E24
    private void Awake()
    {
        CFDMNELIJLO component = base.GetComponent <CFDMNELIJLO>();

        if (component != null)
        {
            this.IOOMNBFQHHC = component.IOOMNBFQHHC;
        }
        if (this.eventReceiver != null && EventDelegate.CPPLNKNPLPI(this.KCQKMKOQLQL))
        {
            this.eventReceiver    = null;
            this.callWhenFinished = null;
        }
    }
示例#3
0
 // Token: 0x060011E1 RID: 4577 RVA: 0x00086A3C File Offset: 0x00084C3C
 public void Start()
 {
     if (this.mStarted)
     {
         return;
     }
     if (this.startsChecked)
     {
         this.startsChecked = false;
         this.startsActive  = true;
     }
     if (!Application.isPlaying)
     {
         if (this.checkSprite != null && this.activeSprite == null)
         {
             this.activeSprite = this.checkSprite;
             this.checkSprite  = null;
         }
         if (this.checkAnimation != null && this.activeAnimation == null)
         {
             this.activeAnimation = this.checkAnimation;
             this.checkAnimation  = null;
         }
         if (Application.isPlaying && this.activeSprite != null)
         {
             this.activeSprite.DIIHJCJOKMP = ((!this.invertSpriteState) ? ((!this.startsActive) ? 0f : 1f) : ((!this.startsActive) ? 1f : 0f));
         }
         if (EventDelegate.CPPLNKNPLPI(this.onChange))
         {
             this.eventReceiver = null;
             this.functionName  = null;
         }
     }
     else
     {
         this.mIsActive = !this.startsActive;
         this.mStarted  = true;
         bool flag = this.instantTween;
         this.instantTween = true;
         this.Set(this.startsActive, true);
         this.instantTween = flag;
     }
 }
示例#4
0
 // Token: 0x06001003 RID: 4099 RVA: 0x000796B0 File Offset: 0x000778B0
 public void HNIJKCKHOFK(float QJFQOMOIOOI, bool CKFOHPDLNJK = true)
 {
     QJFQOMOIOOI = Mathf.Clamp01(QJFQOMOIOOI);
     if (this.mValue != QJFQOMOIOOI)
     {
         float num = this.HKDJGHOHBFQ();
         this.mValue = QJFQOMOIOOI;
         if (this.PNBOOLEOKCI && num != this.BGBMIEJJQKC)
         {
             if (CKFOHPDLNJK && IKBQNBHOJJB.PBBDNDMELHQ(this) && EventDelegate.CPPLNKNPLPI(this.OHEFEKMMIFL))
             {
                 BJQGLGOLMPQ.OMQCQCBLQGJ = this;
                 EventDelegate.PCQQOFMPKCG(this.OHEFEKMMIFL);
                 BJQGLGOLMPQ.OMQCQCBLQGJ = null;
             }
             this.JPBONGIEJCN();
         }
     }
 }
示例#5
0
 // Token: 0x06000FFF RID: 4095 RVA: 0x0007963C File Offset: 0x0007783C
 public void PJMIKDIEGMB(float QJFQOMOIOOI, bool CKFOHPDLNJK = true)
 {
     QJFQOMOIOOI = Mathf.Clamp01(QJFQOMOIOOI);
     if (this.mValue != QJFQOMOIOOI)
     {
         float bgbmiejjqkc = this.BGBMIEJJQKC;
         this.mValue = QJFQOMOIOOI;
         if (this.PNBOOLEOKCI && bgbmiejjqkc != this.BGBMIEJJQKC)
         {
             if (CKFOHPDLNJK && IKBQNBHOJJB.PBBDNDMELHQ(this) && EventDelegate.CPPLNKNPLPI(this.OHEFEKMMIFL))
             {
                 BJQGLGOLMPQ.OMQCQCBLQGJ = this;
                 EventDelegate.CPGBBDIDOID(this.OHEFEKMMIFL);
                 BJQGLGOLMPQ.OMQCQCBLQGJ = null;
             }
             this.JPBONGIEJCN();
         }
     }
 }
示例#6
0
 // Token: 0x060011E3 RID: 4579 RVA: 0x00086B78 File Offset: 0x00084D78
 public void Set(bool state, bool notify = true)
 {
     if (this.validator != null && !this.validator(state))
     {
         return;
     }
     if (!this.mStarted)
     {
         this.mIsActive    = state;
         this.startsActive = state;
         if (this.activeSprite != null)
         {
             this.activeSprite.DIIHJCJOKMP = ((!this.invertSpriteState) ? ((!state) ? 0f : 1f) : ((!state) ? 1f : 0f));
         }
     }
     else if (this.mIsActive != state)
     {
         if (this.group != 0 && state)
         {
             int i           = 0;
             int bjgmibbegdq = UIToggle.list.BJGMIBBEGDQ;
             while (i < bjgmibbegdq)
             {
                 UIToggle uitoggle = UIToggle.list.get_KNPPMKBOGDL(i);
                 if (uitoggle != this && uitoggle.group == this.group)
                 {
                     uitoggle.Set(false, true);
                 }
                 if (UIToggle.list.BJGMIBBEGDQ != bjgmibbegdq)
                 {
                     bjgmibbegdq = UIToggle.list.BJGMIBBEGDQ;
                     i           = 0;
                 }
                 else
                 {
                     i++;
                 }
             }
         }
         this.mIsActive = state;
         if (this.activeSprite != null)
         {
             if (!this.instantTween && IKBQNBHOJJB.PBBDNDMELHQ(this))
             {
                 EPIJJNOIKEK.FJCEGFKJLCL(this.activeSprite.gameObject, 0.15f, (!this.invertSpriteState) ? ((!this.mIsActive) ? 0f : 1f) : ((!this.mIsActive) ? 1f : 0f), 0f);
             }
             else
             {
                 this.activeSprite.DIIHJCJOKMP = ((!this.invertSpriteState) ? ((!this.mIsActive) ? 0f : 1f) : ((!this.mIsActive) ? 1f : 0f));
             }
         }
         if (notify && UIToggle.current == null)
         {
             UIToggle uitoggle2 = UIToggle.current;
             UIToggle.current = this;
             if (EventDelegate.CPPLNKNPLPI(this.onChange))
             {
                 EventDelegate.CPGBBDIDOID(this.onChange);
             }
             else if (this.eventReceiver != null && !string.IsNullOrEmpty(this.functionName))
             {
                 this.eventReceiver.SendMessage(this.functionName, this.mIsActive, SendMessageOptions.DontRequireReceiver);
             }
             UIToggle.current = uitoggle2;
         }
         if (this.animator != null)
         {
             QDBCMHDINGL qdbcmhdingl = QDBCMHDINGL.MLOIHHQMFBN(this.animator, null, (!state) ? QMDFDJEIEMO.Reverse : QMDFDJEIEMO.Forward, GKKIEDPNJIF.IgnoreDisabledState, PNDJHKBEPNM.DoNotDisable);
             if (qdbcmhdingl != null && (this.instantTween || !IKBQNBHOJJB.PBBDNDMELHQ(this)))
             {
                 qdbcmhdingl.INNQKLOKBFL();
             }
         }
         else if (this.activeAnimation != null)
         {
             QDBCMHDINGL qdbcmhdingl2 = QDBCMHDINGL.MLOIHHQMFBN(this.activeAnimation, null, (!state) ? QMDFDJEIEMO.Reverse : QMDFDJEIEMO.Forward, GKKIEDPNJIF.IgnoreDisabledState, PNDJHKBEPNM.DoNotDisable);
             if (qdbcmhdingl2 != null && (this.instantTween || !IKBQNBHOJJB.PBBDNDMELHQ(this)))
             {
                 qdbcmhdingl2.INNQKLOKBFL();
             }
         }
         else if (this.tween != null)
         {
             bool flag = IKBQNBHOJJB.PBBDNDMELHQ(this);
             if (this.tween.tweenGroup != 0)
             {
                 UITweener[] componentsInChildren = this.tween.GetComponentsInChildren <UITweener>(true);
                 int         j   = 0;
                 int         num = componentsInChildren.Length;
                 while (j < num)
                 {
                     UITweener uitweener = componentsInChildren[j];
                     if (uitweener.tweenGroup == this.tween.tweenGroup)
                     {
                         uitweener.Play(state);
                         if (this.instantTween || !flag)
                         {
                             uitweener.tweenFactor = ((!state) ? 0f : 1f);
                         }
                     }
                     j++;
                 }
             }
             else
             {
                 this.tween.Play(state);
                 if (this.instantTween || !flag)
                 {
                     this.tween.tweenFactor = ((!state) ? 0f : 1f);
                 }
             }
         }
     }
 }