public void UpdateFrame()
{
++this.wFallFrCounter;
if (this.wFallFrCounter > 2)
{
this.wFallFrCounter = 0;
++this.regularFrame;
if (this.regularFrame > 15)
this.regularFrame = 0;
}
++this.wFallFrCounter2;
if (this.wFallFrCounter2 > 6)
{
this.wFallFrCounter2 = 0;
++this.slowFrame;
if (this.slowFrame > 15)
this.slowFrame = 0;
}
++this.rainFrameCounter;
if (this.rainFrameCounter <= 0)
return;
++this.rainFrameForeground;
if (this.rainFrameForeground > 7)
this.rainFrameForeground -= 8;
if (this.rainFrameCounter <= 2)
return;
this.rainFrameCounter = 0;
--this.rainFrameBackground;
if (this.rainFrameBackground >= 0)
return;
this.rainFrameBackground = 7;
}