Пример #1
0
 public void RegisterActiveInteraction(Interaction.Type interactionType)
 {
     activeInteractionType = interactionType;
     HideActionAvailablePrompt();
     playerController.Disable();
     SystemManager.Instance.RegisterActiveSystem(GameSystem.Type.Interaction);
 }
Пример #2
0
 public void UnregisterActiveInteraction()
 {
     ShowActionAvailablePrompt();
     playerController.Enable();
     SystemManager.Instance.UnregisterActiveSystem(GameSystem.Type.Interaction);
     activeInteractionType = Interaction.Type.None;
 }
Пример #3
0
 /// <summary>
 /// Registers trigger as ready for interaction. Will override the current active trigger, if any.
 /// the current one.
 /// </summary>
 /// <param name="trigger">Trigger to be marked as ready for interaction with the player</param>
 /// <param name="interactionType">Type of interaction the current trigger allows</param>
 public void RegisterTrigger(IInteractionTrigger trigger, Interaction.Type interactionType)
 {
     if (currentTrigger != null)
     {
         currentTrigger.DisableInteraction();
     }
     currentTrigger = trigger;
     currentTrigger.EnableInteraction();
     ShowActionAvailablePrompt();
 }