Example #1
0
        public override void PerformEventAction(NPCControl npc)
        {
            var abilityButtonPanel = UIManager.Instance.abilityButtonPanel;

            UIManager.Instance.DialogueUI.CloseDialogue();
            abilityButtonPanel.CloseGuildAbilitiesCanvas();
        }
Example #2
0
 void OnMouseOverInteractable(NPCControl npc)
 {
     if (Input.GetMouseButtonDown(1) && npc.IsPlayerInRange)
     {
         UIManager.Instance.dialogueUI.OpenDialogue(npc);
     }
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
 public abstract void PerformEventAction(NPCControl npc);