Пример #1
0
 public static void CreateRoomTemplatePrefab()
 {
     RoomTemplateInitializerUtils.CreateRoomTemplatePrefab <DungeonRoomTemplateInitializer>();
 }
Пример #2
0
 /// <summary>
 /// Creates a room template prefab using a given room template initializer.
 /// </summary>
 /// <typeparam name="TRoomTemplateInitializer"></typeparam>
 public static void CreateRoomTemplatePrefab <TRoomTemplateInitializer>() where TRoomTemplateInitializer : RoomTemplateInitializerBaseGrid2D
 {
     RoomTemplateInitializerUtils.CreateRoomTemplatePrefab <TRoomTemplateInitializer>();
 }
Пример #3
0
 // [MenuItem("Assets/Create/Dungeon generator/Custom room template")]
 public static void CreateRoomTemplatePrefab()
 {
     // Make sure to use the correct generic parameter - it should be the type of this class
     RoomTemplateInitializerUtils.CreateRoomTemplatePrefab <CustomRoomTemplateInitializerExample2>();
 }