private void Awake() { playerActionControls = new PlayerActionControls(); rb = GetComponent <Rigidbody2D>(); col = GetComponent <Collider2D>(); animator = GetComponent <Animator>(); spriteRenderer = GetComponent <SpriteRenderer>(); audioSource = GetComponent <AudioSource>(); }
private void Awake() { playerActionControls = new PlayerActionControls(); // Attack playerActionControls.Land.Attack.started += _ => isAttackButtonPressed = true; playerActionControls.Land.Attack.canceled += _ => isAttackButtonPressed = false; playerActionControls.Land.Jump.started += _ => isJumpButtonPressed = true; playerActionControls.Land.Jump.canceled += _ => isJumpButtonPressed = false; playerActionControls.Land.MoveHorizontal.started += _ => CheckTumbleweed(); }
private void Awake() { playerActionControls = new PlayerActionControls(); playerActionControls.Land.ActivateSomething.started += _ => ActivateSomeThing(); }
private void Awake() { m_playersControls = new PlayerActionControls(); }
private void Awake() { playerActionControls = new PlayerActionControls(); playerActionControls.Land.Activateability.started += _ => ActivateAbility(); }
//Run before Start private void Awake() { playerActionControls = new PlayerActionControls(); playerRb = GetComponent <Rigidbody2D>(); playerColl = GetComponent <Collider2D>(); }