示例#1
0
        // protected virtual void OnDisable () {
        // if (Application.isPlaying)
        //     RemoveAllEvents();
        // if (!isQuitting) {
        //     RemoveActionHints();
        // }
        // }


        // public
        void AddActionHints(List <int> actionHints, List <string> hintNames)
        {
            if (actionHintsPanel != null)
            {
                actionHintsPanel.AddHintElements(actionHints, hintNames);
            }
            else
            {
                Debug.LogError("cant add hint for " + name + " contorl hint panel == null");
            }
        }
示例#2
0
 public static void ShowInteractionPrompt(int promptIndex, string interactableName, List <int> actions, List <string> actionsNames, float fadeInTime = .1f)
 {
     ShowUIComponent(interactablePrompt, fadeInTime, 0, 0);
     interactablePrompt.textUI.SetText(interactableName);
     interactablePrompt.AddHintElements(actions, actionsNames);
 }