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(); }
private void Awake() { inputs = new InGameInputs(); animatorComp = GetComponent <Animator>(); audioComp = GetComponent <AudioSource>(); }