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