how to reference rigidbody rigidbody2d for unity code example Example: how to add reference to rigidbody 2d public Rigidbody2D rb;