void OnTriggerEnter2D(Collider2D other) { if (other.name == "player" && !player.hadDialogue[0]) { switch (PlayerPrefs.GetInt("professor")) { case 0: professorName = "Pr. Silitti"; professorImage = Resources.Load <Sprite>("Professors/silitti_face"); break; case 1: professorName = "Pr. Shilov"; professorImage = Resources.Load <Sprite>("Professors/shilov_face"); break; case 2: professorName = "Pr. Zouev"; professorImage = Resources.Load <Sprite>("Professors/zouev_face"); break; } api.DialogueStart(0, professorName, "Good Morning!", professorImage); api.SetHints("Greet the professor!\n1. Hi\n2. Hello"); } }
void OnTriggerEnter2D(Collider2D other) { if (other.name == "player" && !player.hadDialogue[3]) { api.DialogueStart(3, "Simon Barrel-Roll", "*sighing* Hi! ", rightPicture); api.SetHints("Greet the guy!\n1. Hi\n2. Hello"); } }
void Update() { if (player.canMove) { api.DialogueStart(5, "Sheet of Paper", "Good Day, the Information Man!", rightPicture); api.SetHints("Greet the sheet of paper!\n1. Hi\n2. Hello"); } }
void OnTriggerEnter2D(Collider2D other) { if (other.name == "player" && !player.hadDialogue[4]) { switch (PlayerPrefs.GetInt("professor")) { case 0: professorName = "Pr. Silitti"; professorImage = Resources.Load <Sprite>("Professors/silitti_face"); break; case 1: professorName = "Pr. Shilov"; professorImage = Resources.Load <Sprite>("Professors/shilov_face"); break; case 2: professorName = "Pr. Zouev"; professorImage = Resources.Load <Sprite>("Professors/zouev_face"); break; } api.DialogueStart(4, professorName, "Good day, " + player.fullname + ".. Why are you so late? Did you forget that you have a final exam today?", professorImage); api.SetHints("Apologize to the professor!\nSay something containing \"sorry\""); } }
void OnTriggerEnter2D(Collider2D other) { if (other.name == "player" && !player.hadDialogue[1]) { api.DialogueStart(1, "Painter.Net", "Hey! Where are you going?! Did you see an announcement that " + "skyway is closed\n because of unplanned works!", rightPicture); api.SetHints("1. Yes\n2. No"); } }
// Update is called once per frame void Update() { if (player.canMove) { api.DialogueStart(2, "Yakubovich", "Pam pam pam! Welcome to the famous game show!", rightPicture); api.SetHints("Greet the showman!"); } }