Пример #1
0
    private void Init()
    {
        stateModel = GetComponent <PlayerStatePresenter>().StateModel;
        inventory  = GetComponent <SimplePlayerInventoryPresenter>();
        Mediator.Sigton.PlayerInteract = this;

        playerInteractBehavior[PlayerInteractionType.Collect] = PlayerCollectBehavior;
        playerInteractBehavior[PlayerInteractionType.Dialog]  = PlayerDialogBehavior;
    }
 private void Init()
 {
     stateModel = GetComponent <PlayerStatePresenter>().StateModel;
     inventory  = GetComponent <SimplePlayerInventoryPresenter>();
     playerInteractBehavior.Add("NPC", () =>
     {
         print("start dialog");
     });
 }