Пример #1
0
 public void nextMap(MapDesigner map)
 {
     addToArrays(map.gameObject);
     if (objects.Count > 0)
     {
         sendObjects();
         sendStartPositions();
     }
 }
Пример #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        MapDesigner mapDesigner = (MapDesigner)target;

        if (GUILayout.Button("Save"))
        {
            mapDesigner.Save();
        }
        if (GUILayout.Button("Load"))
        {
            mapDesigner.Load();
        }
    }
Пример #3
0
        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;
        }