Example #1
0
 private void Awake()
 {
     playerActionControls = new PlayerActionControls();
     rb             = GetComponent <Rigidbody2D>();
     col            = GetComponent <Collider2D>();
     animator       = GetComponent <Animator>();
     spriteRenderer = GetComponent <SpriteRenderer>();
     audioSource    = GetComponent <AudioSource>();
 }
Example #2
0
 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();
 }
Example #5
0
 private void Awake()
 {
     playerActionControls = new PlayerActionControls();
     playerActionControls.Land.Activateability.started += _ => ActivateAbility();
 }
Example #6
0
 //Run before Start
 private void Awake()
 {
     playerActionControls = new PlayerActionControls();
     playerRb             = GetComponent <Rigidbody2D>();
     playerColl           = GetComponent <Collider2D>();
 }