mirror of
https://github.com/ConjureETS/ProjectClubCore.git
synced 2026-03-24 09:30:58 +00:00
30 lines
680 B
C#
30 lines
680 B
C#
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");
|
|
}
|
|
}
|