public void nextMap(MapDesigner map) { addToArrays(map.gameObject); if (objects.Count > 0) { sendObjects(); sendStartPositions(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); MapDesigner mapDesigner = (MapDesigner)target; if (GUILayout.Button("Save")) { mapDesigner.Save(); } if (GUILayout.Button("Load")) { mapDesigner.Load(); } }
public MainWindow() { InitializeComponent(); var version = System.Reflection.Assembly.GetEntryAssembly().GetName().Version; Title = "Map Editor - v" + version.Major + "." + version.Minor + "." + version.Build; mapDesigner = new MapDesigner(this) { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center }; svMap.Content = mapDesigner; svMap.CanContentScroll = true; mniSave.IsEnabled = false; }