public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("重置并生成战场")) { MapManager_Battle origin = (MapManager_Battle)target; origin.ClearMap(); origin.GenerateMap(); } }
public void Init() { if (map.nodeItems == null) { map.GenerateMap(); } map.parent.gameObject.SetActive(false); BattleResultMgr.instance.Init(); players = new int[2]; heroes = new Hero[2]; heroUnits = new GameObject[2]; }