您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
668 B
25 行
668 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Localization.Components;
|
|
using TMPro;
|
|
using UnityEngine.UI;
|
|
|
|
public class UIInteractionIndicator : MonoBehaviour
|
|
{
|
|
[SerializeField] LocalizeStringEvent _interactionName = default;
|
|
|
|
[SerializeField]
|
|
UIButtonPrompt buttonPromptSetter = default;
|
|
|
|
public void FillInteractionPanel(InteractionSO interactionItem)
|
|
{
|
|
_interactionName.StringReference = interactionItem.InteractionName;
|
|
bool isKeyboard = true;
|
|
// bool isKeyboard = !(Input.GetJoystickNames() != null && Input.GetJoystickNames().Length > 0);
|
|
buttonPromptSetter.SetButtonPrompt(isKeyboard);
|
|
|
|
}
|
|
|
|
|
|
}
|