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