Exemplo n.º 1
0
 private void ListenForKey()
 {
     if (InputManager.GetKeyDown(KeyCode.P))
     {
         InteractablePreviewUI.ToggleShow();
     }
 }
Exemplo n.º 2
0
 static public void SetActiveInteractable(Interactable interactable)
 {
     Instance.activeInteractable = interactable;
     if (GameManager.Mode == GameMode.Sandbox && interactable != null)
     {
         InteractablePreviewUI.SetPreviewObject(interactable);
     }
 }
Exemplo n.º 3
0
 /// <summary> Initialize Next Interactable with Hightlights and Setup PreviewUI </summary>
 static public void InitializeNextInteractable()
 {
     if (GameManager.Mode == GameMode.Rehearsal)
     {
         InteractableManager.UnHighlightAllInteractables();
         NextInteractable.HighlightInteractableDynamically(true);
         InteractablePreviewUI.SetPreviewObject(NextInteractable);
     }
 }
Exemplo n.º 4
0
        static public void SetActiveInteractable(Interactable interactable)
        {
            Instance.activeInteractable = interactable;
            interactable.HighlightInteractable(true);

            if ((GameManager.Mode == GameMode.Sandbox || GameManager.Mode == GameMode.Recall) && interactable != null)
            {
                InteractablePreviewUI.SetPreviewObject(interactable);
            }
        }
Exemplo n.º 5
0
        static public void SetActiveInteractable(Interactable interactable, int actionId)
        {
            Instance.activeInteractable = interactable;
            //interactable.HighlightInteractable(true);

            if ((GameManager.Mode == GameMode.Sandbox || GameManager.Mode == GameMode.Recall) && interactable != null)
            {
                InteractablePreviewUI.SetPreviewObject(interactable, InteractablePath.Instance.actionIds[InteractablePath.Instance.nextIndex]);
            }
        }
Exemplo n.º 6
0
 static private InteractablePreviewUI setInstance()
 {
     instance = HUDManager.Instance.GetComponentInChildren <InteractablePreviewUI>(true); return(instance);
 }