Esempio n. 1
0
 private void ListenForKey()
 {
     if (InputManager.GetKeyDown(KeyCode.P))
     {
         InteractablePreviewUI.ToggleShow();
     }
 }
Esempio n. 2
0
 static public void SetActiveInteractable(Interactable interactable)
 {
     Instance.activeInteractable = interactable;
     if (GameManager.Mode == GameMode.Sandbox && interactable != null)
     {
         InteractablePreviewUI.SetPreviewObject(interactable);
     }
 }
Esempio 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);
     }
 }
Esempio 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);
            }
        }
Esempio 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]);
            }
        }
 static private InteractablePreviewUI setInstance()
 {
     instance = HUDManager.Instance.GetComponentInChildren <InteractablePreviewUI>(true); return(instance);
 }