private void updateState() { float num1 = this.timeTaken - 3f; if ((double)num1 <= 0.0) { this.state = SQLExploitExe.SQLState.Intro; } else { float num2 = num1 - 3f; if ((double)num2 <= 0.0) { this.state = SQLExploitExe.SQLState.MainIntro; } else { float num3 = num2 - 5f; if ((double)num3 <= 0.0) { this.state = SQLExploitExe.SQLState.MainBody; } else if ((double)(num3 - 1.2f) <= 0.0) { this.state = SQLExploitExe.SQLState.Ending; } else if (!this.isExiting) { this.Completed(); this.isExiting = true; } } } }
public override void Update(float t) { base.Update(t); this.timeTaken += t; this.currentStateTimer += t; SQLExploitExe.SQLState state = this.state; this.updateState(); if (this.state == state) { return; } this.currentStateTimer = 0.0f; }