示例#1
0
 private void ListenForKey()
 {
     if (InputManager.GetKeyDown(KeyCode.P))
     {
         InteractablePreviewUI.ToggleShow();
     }
 }
示例#2
0
 static public void SetActiveInteractable(Interactable interactable)
 {
     Instance.activeInteractable = interactable;
     if (GameManager.Mode == GameMode.Sandbox && interactable != null)
     {
         InteractablePreviewUI.SetPreviewObject(interactable);
     }
 }
示例#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);
     }
 }
示例#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);
            }
        }
示例#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);
 }