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