public void ListAll() { textController.AppendMain("Your inventory contains: "); for (int i = 0; i < items.Count(); i++) { textController.AppendMain(items[i].objectName); } }
void WelcomePlayer() { if (playerName == "New Player") { output.AppendMain("The scene welcomes the new Detective... \nWhat name do you take?"); output.SetGameState("New Player"); } else { output.AppendMain("Welcome back to the case, Detective " + playerName + "."); } }
public void Win() { Debug.Log(photo); if (photo == true) { textController.AppendMain("WARNING: Opening the safe requires a conviction. Are you ready to solve the mystery? (yes/no)"); textController.gameState = "End Confirmation"; } else { textController.AppendMain("You can't do that."); } }
private void Response(int location, string input) { textController.AppendMain(dialogue[location, 1] + input); }