コード例 #1
0
 static void InitializeTemplate( )
 {
     foreach (GameObject go in Selection.gameObjects)
     {
         WorldItem wi = null;
         if (go.HasComponent <WorldItem> (out wi))
         {
             Debug.Log("Initializing template in " + wi.name);
             wi.InitializeTemplate();
         }
     }
 }