public void DisplayDialogue() { if (ItemDialogue.Length > 0) { dialogue.PopupDialogue(ItemDialogue.Length, ItemDialogue); } }
public void DisplayDialogue() { if (npcDialogue.Length > 0) { dialogue.PopupDialogue(npcDialogue.Length, npcDialogue); } }
public void DisplayDialogue(string[] dia) { if (dia.Length > 0) { dialogue.PopupDialogue(dia.Length, dia); } }
public void PlayerItemUseHandler() { if (player.MoonShineNum <= 0 && player.HealthNum <= 0 && player.WolfUnlock == false && player.RaygunUnlock == false) { player.item = PlayerScript.PlayerItem.NONE; } else if (player.item == PlayerScript.PlayerItem.HEALTH && player.HealthNum >= 1) { player.PlayerUseHealth(); } else if (player.item == PlayerScript.PlayerItem.MOONSHINE && player.MoonShineNum >= 1) { if (player.WolfUnlock) { player.PlayerUseMoonshine(); } else { dia = new string[1]; dia[0] = "Is now really the time to be drinking moonshine?!"; dialogue.PopupDialogue(dia.Length, dia); } } else if (player.item == PlayerScript.PlayerItem.MOONSTONE) { if (player.IsWolf) { player.IsWolf = false; } else { dia = new string[1]; dia[0] = "Use the Item-Trigger button to transform! Press the Item-Trigger or Use Item button to de-transform."; dialogue.PopupDialogue(dia.Length, dia); } } else if (player.item == PlayerScript.PlayerItem.RAYGUN) { dia = new string[1]; dia[0] = "Use the Item-Trigger button to use the Raygun! Press the Item-Trigger or Use Item button to stop."; dialogue.PopupDialogue(dia.Length, dia); } else { player.item = PlayerScript.PlayerItem.NONE; } }
private void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Player" && !gm.gs.item.ItemCollected[33]) { npcDialogue = new string[3]; npcDialogue[0] = "Naturally, he's not here."; npcDialogue[1] = "His briefcase is here, and hm... '303' is written on the wall."; npcDialogue[2] = "Worth checking out."; dialogue.PopupDialogue(npcDialogue.Length, npcDialogue); } }
private void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Player") { if (DarkAtLocation() && (!player.FlashUnlock || !player.FlashOn)) { DoorDialogue = new string[1]; DoorDialogue[0] = "Too dark. Can't see the buttons."; dialogue.PopupDialogue(DoorDialogue.Length, DoorDialogue); PlayerHere = false; } else { PlayerHere = true; bubble.SetTrigger("bubbleq"); } } }