Example #1
0
 void CreateMapNodesI()
 {
     if (mapSlotNodePrefab != null)
     {
         for (int i = 0; i < ContentView.transform.childCount; i++)
         {
             this.GetComponentInChildren <SimpleScrollSnap>().Remove(i);
         }
         foreach (var mapNode in MapSystem.GetMapNodeAll())
         {
             if (mapNode != null)
             {
                 // 맵노드 생성
                 GameObject mapNodePrefab = mapSlotNodePrefab;
                 mapNodePrefab.name = mapNode.name;
                 this.GetComponentInChildren <SimpleScrollSnap>().AddToBack(mapNodePrefab);
             }
         }
     }
 }