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