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(); }
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(); }