Example #1
0
 void Start()
 {
     for (int i = 0; i < 200; i++)
     {
         int        n        = Random.Range(0, 4) + 1;
         ObstacleVO obstacle = InGameData.Instance.ObstacleList.Find(a => a.Type == n).Copy();
         obstacle.SetCreatePosition(2000 + (i * Random.Range(0, 5) * 60));
         ObstacleList.Add(obstacle);
     }
 }