private void Start() { _rb2d = GetComponent <Rigidbody2D>(); _playerDirection = GetComponent <PlayerDirection>(); _playerMovementReadOnlyState = GetComponent <PlayerMovementReadOnlyState>(); _playerHealth = GetComponent <PlayerHealth>(); }
// Start is called before the first frame update private void Start() { _rb2d = GetComponent <Rigidbody2D>(); _movementState = GetComponent <PlayerMovementReadOnlyState>(); _state = new State { MovingState = PlayerMovingState.Falling }; _origin = transform.position; }