public void Load()
 {
     if (BrickManager.Instance.userMap != null)
     {
         VerifyLocalController();
         localController.initTrain();
         SpawnerDesc[] railSpawners = BrickManager.Instance.userMap.GetRailSpawners();
         if (railSpawners != null)
         {
             for (int i = 0; i < railSpawners.Length; i++)
             {
                 TrainController trainController = new TrainController();
                 trainController.shooter = -1;
                 trainController.seq     = railSpawners[i].sequence;
                 trainController.setInit(railSpawners[i].position, Rot.ToQuaternion(railSpawners[i].rotation));
                 trainController.train = (Object.Instantiate((Object)Instance.objTrain, railSpawners[i].position, Rot.ToQuaternion(railSpawners[i].rotation)) as GameObject);
                 trainObj.Add(trainController);
             }
         }
     }
 }