|
|
@@ -675,14 +675,12 @@ public class GameMapEditor : EditorWindow
|
|
|
{
|
|
|
EditorGUILayout.PrefixLabel("Size");
|
|
|
EditorGUI.BeginChangeCheck();
|
|
|
- int newMapSize_w = EditorGUILayout.IntField(mapSize_w, GUILayout.Width(35));
|
|
|
+ mapSize_w = EditorGUILayout.IntField(mapSize_w, GUILayout.Width(35));
|
|
|
GUILayout.Label("x");
|
|
|
- int newMapSize_h = EditorGUILayout.IntField(mapSize_h, GUILayout.Width(35));
|
|
|
+ mapSize_h = EditorGUILayout.IntField(mapSize_h, GUILayout.Width(35));
|
|
|
if (GUILayout.Button(GC_apply, EditorStyles.miniButtonRight))
|
|
|
{
|
|
|
- asset.maps[mapIdx].Resize(newMapSize_w, newMapSize_h);
|
|
|
- mapSize_w = asset.maps[mapIdx].width;
|
|
|
- mapSize_h = asset.maps[mapIdx].height;
|
|
|
+ asset.maps[mapIdx].Resize(mapSize_w, mapSize_h);
|
|
|
EditorUtility.SetDirty(asset);
|
|
|
AssetDatabase.SaveAssets();
|
|
|
}
|