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

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