Esempio n. 1
0
 private void Awake()
 {
     rb2D             = this.GetComponent <Rigidbody2D>();
     characterInput   = this.GetComponent <PlayerInputReader>();
     jumpStoredAmount = 5;
     currentPos       = this.transform.position;
 }
Esempio n. 2
0
 private void InitializeInstances()
 {
     PlayerInput = GetComponent <PlayerInputReader>();
     rigidbody   = GetComponent <Rigidbody2D>();
     state       = GetComponent <PlayerState>();
     animator    = GetComponent <Animator>();
     boxCollider = GetComponent <BoxCollider2D>();
 }