예제 #1
0
 public void Show(UIStartupFairy.FairyType iType, UIStartupFairy.FairyState iState, Action onFinished)
 {
     this.ReqFairyType(iType);
     base.get_transform().set_localPosition(this._listFairyAnimationParameter.get_Item((int)iType).startPos);
     this.PreparaAnimation(true, delegate
     {
         this.collider.set_enabled(true);
         this.ReqFairyState(iState);
         Dlg.Call(ref onFinished);
     });
 }
예제 #2
0
 private void ReqFairyType(UIStartupFairy.FairyType iType)
 {
     if (this._iType == iType)
     {
         return;
     }
     this._iType        = iType;
     this._iState       = (this._iStatePrev = UIStartupFairy.FairyState.Idle);
     this._nSpriteIndex = 0;
     this.SetSprite(this._iType, this._iState, this._nSpriteIndex);
     this._listObserverStream.ForEach(delegate(IDisposable x)
     {
         if (x != null)
         {
             x.Dispose();
         }
     });
 }
예제 #3
0
 private void SetSprite(UIStartupFairy.FairyType iType, UIStartupFairy.FairyState iState, int nIndex)
 {
     this.fairySprite.spriteName = ((iType != UIStartupFairy.FairyType.None) ? string.Format("mini{0}_{1}_{2:D2}", (int)iType, iState.ToString(), nIndex) : string.Empty);
     this.fairySprite.localSize  = this._listFairyAnimationParameter.get_Item((int)iType).baseSpriteSize;
 }