Beispiel #1
0
 private static void SpawnZone_Postfix(ZoneSystem __instance, Vector2i zoneID, GameObject root)
 {
     if (!(root == null))
     {
         HMAPManager.SetGameObject(zoneID, root.GetComponentInChildren <Heightmap>().gameObject);
         HMAPManager.SetHeightmap(zoneID, root.GetComponentInChildren <Heightmap>());
         HMAPManager.CalcTMods(zoneID);
         HMAPManager.GetZoneInfo(zoneID).hmap.Regenerate();
     }
 }