Exemple #1
0
 private void Awake()
 {
     _rb         = GetComponent <Rigidbody2D>();
     _sr         = GetComponent <SpriteRenderer>();
     _keyBinder  = GetComponent <KeyboardKeyBinder>();
     _anim       = GetComponent <Animator>();
     _knockback  = GetComponent <EntityKnockback>();
     _dashesLeft = MaxDashes;
 }
Exemple #2
0
 private void Awake()
 {
     _rb        = GetComponent <Rigidbody2D>();
     _keyBinder = GetComponent <KeyboardKeyBinder>();
     _JumpsLeft = MaxJumps;
 }