Gruppe22.Backend.NPC.Interact C# (CSharp) Метод

Interact() публичный Метод

Method to interact with a NPC. Either opens the NPC's shop or his dialogue. Calls the Eventhandler.
public Interact ( Actor With ) : void
With Actor The actor with which should be interacted
Результат void
        public void Interact(Actor With)
        {
            if (_hasShop) ((Backend.IHandleEvent)_tile.parent).HandleEvent(false, Backend.Events.Shop, this, With);
            if (_hasDialog) ((Backend.IHandleEvent)_tile.parent).HandleEvent(false, Backend.Events.Dialog, this, With, "");
        }