public void AgentDone() { if (this.isScriptValid() && this.getScriptType() == "AgentScript") { AgentScript.Done(); } }