// The sub task method called upon when buttons are clicked void SubmitIt() { // Creates local temporary Button Commands class to process the ButtonCommand according to a //Unique string assigned when script was attached to a game button object ButtonController lcBtnController = new ButtonController(); lcBtnController.dbConnection.JSNet = TheJSNDrop; // Pass the JSNdrop gameobject to the temporary Button Controller lcBtnController.BtnProcess(ButtonCommand); // Process button click according to its command identifier }