private void CurrentMapCombo_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if ((sender as ComboBox).SelectedItem == null)
            {
                return;
            }
            string mapKey = (sender as ComboBox).SelectedItem.ToString();

            CurrentMapScript.Text = MapEventsManager.GetBigMap(mapKey).GenerateXml().ToString();
        }
Пример #2
0
    public void Load(string key)
    {
        active = true;
        BigMap bigMap = MapEventsManager.GetBigMap(key);

        if (bigMap == null)
        {
            Debug.Log("错误,地图" + key + "不存在!");
            return;
        }
        RuntimeData.Instance.CurrentBigMap = bigMap.Name;
        currentMap = bigMap;
        resetMap();
        NGUITools.SetActive(this.gameObject, true);
    }