public void prepForCallExpert() { try { if (!onCall) { dbcon.ConnectToDB(); dbcon.Query("Task", "CallExpert"); dbcon.CloseConn(); confirmationMsg.text = dbcon.GetText(); } else if (onCall) { dbcon.ConnectToDB(); dbcon.Query("Task", "HangUp"); dbcon.CloseConn(); confirmationMsg.text = dbcon.GetText(); } } catch (Exception e) { Debug.Log(e.Message); } finally { currentMode = ConfirmationMode.callExpert; unhideMenu(); } }
void Start() { string currentScene = SceneManager.GetActiveScene().name; //Debug.Log("Current Scene is " + currentScene); dbcon.ConnectToDB(); dbcon.Query("Scene", currentScene); dbcon.CloseConn(); instruction.text = dbcon.GetText(); //Debug.Log("------------------------WE GOT THE TEXT--------------------: " + dbcon.GetText()); }