public object Call(Interpreter interpreter, Token token, List <object> arguments) { //spawn the square, which contains the tuple's information GameObject go = GameObject.Instantiate(self.gameController.squarePrefab); SquareController controller = go.GetComponent <SquareController>(); SquareTuple tuple = self.registeredSquares[(string)arguments[0]]; controller.displayName = tuple.displayName; controller.spriteName = tuple.spriteName; controller.onEnter = tuple.onEnter; controller.onExit = tuple.onExit; controller.positionX = (int)(double)arguments[1]; controller.positionY = (int)(double)arguments[2]; controller.UpdateMembers(); self.gameController.CacheSquare(go); return(null); }