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