RemoveTemporaryAnimation() 개인적인 정적인 메소드

private static RemoveTemporaryAnimation ( short x, short y ) : void
x short
y short
리턴 void
예제 #1
0
 // Token: 0x06000873 RID: 2163 RVA: 0x003AC924 File Offset: 0x003AAB24
 public void Update()
 {
     if (this._temporary)
     {
         Tile tile = Main.tile[(int)this._coordinates.X, (int)this._coordinates.Y];
         if (tile != null && tile.type != this._tileType)
         {
             Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
             return;
         }
     }
     this._frameCounter++;
     if (this._frameCounter >= this._frameCounterMax)
     {
         this._frameCounter = 0;
         this._frame++;
         if (this._frame >= this._frameMax)
         {
             this._frame = 0;
             if (this._temporary)
             {
                 Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
             }
         }
     }
 }
예제 #2
0
 public void Update()
 {
     if (this._temporary)
     {
         Tile tile = Main.tile[(int)this._coordinates.X, (int)this._coordinates.Y];
         if (tile != null && (int)tile.type != (int)this._tileType)
         {
             Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
             return;
         }
     }
     ++this._frameCounter;
     if (this._frameCounter < this._frameCounterMax)
     {
         return;
     }
     this._frameCounter = 0;
     ++this._frame;
     if (this._frame < this._frameMax)
     {
         return;
     }
     this._frame = 0;
     if (!this._temporary)
     {
         return;
     }
     Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
 }
예제 #3
0
        public void Update()
        {
            if (this._temporary)
            {
                Tile tile = Main.tile[this._coordinates.X, this._coordinates.Y];
                if (tile != null && tile.type != this._tileType)
                {
                    Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
                    return;
                }
            }
            Animation animation = this;

            animation._frameCounter = animation._frameCounter + 1;
            if (this._frameCounter >= this._frameCounterMax)
            {
                this._frameCounter = 0;
                Animation animation1 = this;
                animation1._frame = animation1._frame + 1;
                if (this._frame >= this._frameMax)
                {
                    this._frame = 0;
                    if (this._temporary)
                    {
                        Animation.RemoveTemporaryAnimation(this._coordinates.X, this._coordinates.Y);
                    }
                }
            }
        }