// Update is called once per frame void FixedUpdate() { rb.velocity = transform.up * GlobalConsts.SNAKE_SPEED; transform.position = GlobalConsts.ClampToRange(transform.position, new Vector2(25, 25)); }