Beispiel #1
0
 // Token: 0x0600100C RID: 4108 RVA: 0x001C72FC File Offset: 0x001C54FC
 public void Update()
 {
     if (!this.ImgRect.gameObject.activeSelf)
     {
         return;
     }
     if (this.animImg != null)
     {
         if (this.spriteAnim != null)
         {
             this.spriteAnim.Update();
         }
         if (this.SpeedTime > 0f)
         {
             if (this.SpeedTime <= this.DeltaTime)
             {
                 this.SpeedTime = 0f;
                 this.animImg.transform.localPosition = this.Destination;
                 this.rectTransform.localRotation     = new Quaternion(0f, 0f, 0f, 0f);
                 this.spriteAnim.m_Sprites            = SheetAnimationUnitGroup.GetActionSpriteArray(0, this.State, this.Angle);
             }
             else
             {
                 this.animImg.transform.localPosition = this.Source + (this.Destination - this.Source) * (this.DeltaTime / this.SpeedTime);
                 this.DeltaTime += Time.deltaTime;
             }
         }
     }
 }
Beispiel #2
0
 // Token: 0x06001009 RID: 4105 RVA: 0x001C71D4 File Offset: 0x001C53D4
 public void SetAnimState(UIAlliance_Control.eRankState state)
 {
     if (state == UIAlliance_Control.eRankState.RankUp || state == UIAlliance_Control.eRankState.RankEqual)
     {
         this.State = 9;
     }
     else
     {
         this.State = 22;
     }
     this.Angle = 270f;
     this.spriteAnim.m_Sprites = SheetAnimationUnitGroup.GetActionSpriteArray(0, this.State, this.Angle);
     this.spriteAnim.SetSpriteIndex(0);
 }
Beispiel #3
0
 // Token: 0x0600100A RID: 4106 RVA: 0x001C7238 File Offset: 0x001C5438
 public void MoveTo(Transform DestTran, float Z, float angle, float speed = 1f)
 {
     this.Source        = this.animImg.transform.localPosition;
     this.Destination   = DestTran.localPosition;
     this.DeltaTime     = 0f;
     this.Destination.z = Z;
     this.Source.z      = Z;
     if (angle > 180f)
     {
         this.rectTransform.localRotation = new Quaternion(0f, 180f, 0f, 0f);
     }
     this.spriteAnim.m_Sprites = SheetAnimationUnitGroup.GetActionSpriteArray(0, this.State, angle);
     this.spriteAnim.SetSpriteIndex(0);
     this.SpeedTime = speed;
 }