void issueTurnOnOffDialog(int tableNo) { dialogInterface = gameObject.GetComponents <TableDialogInterface> () [0]; DialogSystem.character[] c = { DialogSystem.character.SYSTEM }; string tableState; if (tablesOpen [tableNo]) { tableState = "turned On"; } else { tableState = "turned Off"; } string statement = "Computer " + (tableNo + 1) + " is " + tableState; string[] s = { statement }; if (tablesOpen [tableNo]) { dialogInterface.showBigIcon(c, s, 111, pcOn); } else { dialogInterface.showBigIcon(c, s, 111, pcOff); } }
void issueSuccessPuzzlingDialog() { dialogInterface = gameObject.GetComponents <TableDialogInterface> () [0]; DialogSystem.character[] c = { DialogSystem.character.SYSTEM }; string[] s = { "The door is opened." }; dialogInterface.showBigIcon(c, s, 222, doorOpenPic); DialogSystem.character[] c2 = { DialogSystem.character.PLAYER }; string[] s2 = { "Yes! “DUN EAT”! That is the clue! I can leave now!" }; dialogInterface.conversation(c2, s2, 333); }