Example #1
0
    void OnPlayerDisinteracted(PlayerDisinteractEvent @event)
    {
        var board = @event.target.GetComponent <HeistBoard>();

        if (!board)
        {
            return;
        }

        if (board.practice)
        {
            EventBus.Publish(new PlayerDispromptEvent()
            {
                type = InteractionType.StartPractice
            });
        }
        else
        {
            EventBus.Publish(new PlayerDispromptEvent()
            {
                type = InteractionType.StartHeist
            });
        }

        interacting = null;
    }
Example #2
0
 void OnPlayerDisinteracted(PlayerDisinteractEvent @event)
 {
     if (@event.target.CompareTag("Document"))
     {
         document = null;
         EventBus.Publish(new PlayerDispromptEvent()
         {
             type = InteractionType.PickUp
         });
     }
 }
    void OnPlayerDisinteracted(PlayerDisinteractEvent @event)
    {
        var hidable = @event.target.GetComponent <Hideable>();

        if (hidable)
        {
            interacting = null;
            EventBus.Publish(new PlayerDispromptEvent()
            {
                type = InteractionType.Hide
            });
        }
    }