using UnityEngine; public class ControlScript : MonoBehaviour { public static PlayerControls PlayerControls; // Start is called before the first frame update private void Awake() { PlayerControls = new PlayerControls(); } private void OnEnable() { PlayerControls.Enable(); } private void OnDisable() { PlayerControls.Disable(); } private void Update() { //TODO: retirer ceci lorsuqe plus d'exemple de comment le systemInput fonctionne var test = PlayerControls.Player.Select.triggered; if(test) Debug.Log("e Pressed"); } }