// Start is called before the first frame update void Start() { rb2d = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); wallReflection = GetComponent <WallReflection>(); prevYPos = transform.localPosition.y; prevXPos = transform.localPosition.x; }
// Start is called before the first frame update void Start() { rb2d = GetComponent <Rigidbody2D>(); wallReflection = GetComponent <WallReflection>(); }