// 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); } } } }
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); }
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); } } } }