Exemple #1
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);
        }
Exemple #2
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);
        }