예제 #1
0
        public ScriptBlock GetBlockScript(string key, GameBlock block, BlockAction action)
        {
            ValidateScriptType(key, "ScriptBlock");

            ScriptBlock script = (ScriptBlock)GetScript(key);
            script.Prepare(block, action);
            return script;
        }
예제 #2
0
 public void Prepare(GameBlock block, BlockAction action)
 {
     this.block = block;
     this.action = action;
 }