예제 #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("重置并生成战场"))
        {
            MapManager_Battle origin = (MapManager_Battle)target;
            origin.ClearMap();
            origin.GenerateMap();
        }
    }
예제 #2
0
    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];
    }