I’m using a series of switch cases for voice response request like this:
case "WhatDoYouThinkOfThisTown":
//Check if it Is Michael And That Shut Up Mode Is OFF
if ((KITTmodesObject.isMichael == true) && (KITTmodesObject.KITT_isSpeaking == false) && (KITTmodesObject.ShutUpMode == false)) {
Debug.Log ("Michael Asked --- What Do You Think Of This Town?");
KITTvoiceBox.WhatDoYouThinkOfThisTownResp ();
}
break;
Is there a way to determine in a public variable witch case was called last? Perhaps something like:
public “_______” lastQorA;
The “blank” being I’m not really sure how to access this part of the Switch case in a public variable I can then access in other switch cases:
case “WhatDoYouThinkOfThisTown”:
And then use that is another switch case something like:
if (lastQorA.name == "WhatDoYouThinkOThisTown"){
Do Something
}