public override void PerformEventAction(NPCControl npc) { var abilityButtonPanel = UIManager.Instance.abilityButtonPanel; UIManager.Instance.DialogueUI.CloseDialogue(); abilityButtonPanel.CloseGuildAbilitiesCanvas(); }
void OnMouseOverInteractable(NPCControl npc) { if (Input.GetMouseButtonDown(1) && npc.IsPlayerInRange) { UIManager.Instance.dialogueUI.OpenDialogue(npc); } }
public override void PerformEventAction(NPCControl npc) { GameManager gameManager = GameManager.Instance; Character npcCharacter = npc.GetComponent <Character>(); Guild guildToJoin = Array.Find(gameManager.MasterGuildList, x => x.GuildLeader.CharacterName == npcCharacter.CharacterName); InviteToGuild(guildToJoin); }
public override void PerformEventAction(NPCControl npc) { string characterName = npc.GetComponent <Character>().CharacterName; Guild[] guildList = GameManager.Instance.MasterGuildList; Guild guildToOpen = Array.Find(guildList, x => x.GuildLeader.CharacterName == characterName); UIManager.Instance.ShowGuildAbilities(guildToOpen); }
public abstract void PerformEventAction(NPCControl npc);