I've been away for some time and totally forgot how I call the dialogue system.
However, i want to make sure I can call it when I press Cross OR Square.
In this old script that I believe is responsible to actually call the UI to pop up, it sais "Action"
but what is that?
I added both Cross and Square, but its ignoring the cross now... If I remove ethe Square it works with Cross.
That little "Action" text, what is that and where do I change it/Add Action2 so we can use both Cross and Square?
Thanks in advnace!
Code: Select all
using UnityEngine;
using UnityEngine.InputSystem;
using PixelCrushers.DialogueSystem;
using PixelCrushers.Wrappers;
public class DialogInput : MonoBehaviour
{
public InputMaster controls;
void Awake()
{
controls = new InputMaster();
}
void OnEnable()
{
//controls.Enable();
InputDeviceManager.RegisterInputAction("Action", controls.Player.Cross);
InputDeviceManager.RegisterInputAction("Action", controls.Player.Square);
}
void OnDisable()
{
//controls.Disable();
//InputDeviceManager.UnregisterInputAction("Action");
//InputDeviceManager.UnregisterInputAction("Back");
}
}