Esempio n. 1
0
 private void Awake()
 {
     Controls = new MasterInputSystem();
     Controls.Player.Movement.performed += Context => direction = Context.ReadValue <float>();
     Controls.Player.Movement.canceled  += Context => direction = 0;
     Controls.Player.Jump.performed     += Context => jumpFunc();
 }
Esempio n. 2
0
    private void Awake()
    {
        if (TBM == null)
        {
            TBM = this;
        }
        else if (TBM != this)
        {
            Destroy(this);
        }

        Controls = new MasterInputSystem();
        Controls.Player.Interact.performed += Context => interactionPressed = true;
    }
Esempio n. 3
0
 private void Awake()
 {
     if (PMC == null)
     {
         PMC = this;
     }
     else if (PMC != this)
     {
         Destroy(this);
     }
     Controls = new MasterInputSystem();
     Controls.Player.Movement.performed += Context => direction = Context.ReadValue <float>();
     Controls.Player.Movement.canceled  += Context => direction = 0;
     Controls.Player.Jump.performed     += Context => jumpFunc();
 }
Esempio n. 4
0
 private void Awake()
 {
     Controls = new MasterInputSystem();
     Controls.Player.Interact.performed += Context => Interacted = true;
     Controls.Player.Interact.canceled  += Context => Interacted = false;
 }
Esempio n. 5
0
 public PlayerActions(MasterInputSystem wrapper)
 {
     m_Wrapper = wrapper;
 }
Esempio n. 6
0
 private void Awake()
 {
     Controls = new MasterInputSystem();
     Controls.Player.Interact.performed += Context => activatedButtonPressed();
 }
Esempio n. 7
0
 private void Awake()
 {
     Controls = new MasterInputSystem();
     Controls.Player.Attack.performed += Context => shoot();
 }
Esempio n. 8
0
 private void Awake()
 {
     Physics2D.IgnoreLayerCollision(10, 11);
     Controls = new MasterInputSystem();
 }