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; }
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 }); } }