public static string GetString(InputsManager.InputAction input_action) { if (!InputActionToString.s_Initialized) { InputActionToString.Initialize(); } return(InputActionToString.s_Dict[(int)input_action]); }
private string GetText(InputActionData data) { if (data == null) { return(string.Empty); } string str = string.Empty; InputsManager.InputAction action = data.m_Action; if (data.m_Hold > 0f) { str = str + GreenHellGame.Instance.GetLocalization().Get("HUD_Trigger_Hold") + " "; } return(str + GreenHellGame.Instance.GetLocalization().Get("HUDItemInHand_" + InputActionToString.GetString(action))); }