public ScriptBlock GetBlockScript(string key, GameBlock block, BlockAction action) { ValidateScriptType(key, "ScriptBlock"); ScriptBlock script = (ScriptBlock)GetScript(key); script.Prepare(block, action); return script; }
public void Prepare(GameBlock block, BlockAction action) { this.block = block; this.action = action; }