Ejemplo n.º 1
0
 public void EnableInputs()
 {
     inputs.InGame.Spatule.performed += UseSpatule;
     inputs.InGame.Knife.performed   += UseKnife;
     inputs.InGame.Tongs.performed   += UseTongs;
     inputs.InGame.Sucker.performed  += UseSucker;
     inputs.Enable();
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        Cursor.visible = false;
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(this);
        }

        inputs = new InGameInputs();

        inputs.InMenu.Submit.performed += ctx => PressButton();
        inputs.InMenu.Up.performed     += ctx => UpButton();
        inputs.InMenu.Down.performed   += ctx => DownButton();
        inputs.Enable();
    }