//private List<Vector2> m_RecordedPositions = new List<Vector2>(); private void Awake() { m_Rigidbody2D = GetComponent <Rigidbody2D>(); if (managerMode == ManagerMode.Spawn) { SpawnObstacles(); } else { roadData.Clear(); } }