Пример #1
0
 private void Reposition()
 {
     transform.position = new Vector3(lanes.GetComponent <BoxCollider2D>().bounds.min.x + lanes.LaneHeight / 2f, lanes.CenterOfLane(currentLane.Lane), 0);
 }