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

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