本文整理汇总了C#中MapData.set_info方法的典型用法代码示例。如果您正苦于以下问题:C# MapData.set_info方法的具体用法?C# MapData.set_info怎么用?C# MapData.set_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MapData
的用法示例。
在下文中一共展示了MapData.set_info方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addItem
void addItem(CrashMapData entry, bool self = true)
{
ChooseItemEntry temp = CreateItemEntry();
temp._txt_1.text = entry.MapName;
temp._txt_2.text = entry.CreaterName;
System.DateTime time = new System.DateTime(1970, 1, 1).ToLocalTime().AddSeconds(entry.create_time);
temp._txt_3.text = time.ToString();
MapData temp_ = new MapData();
temp_.set_info(entry);
temp.SetTexture(temp_.CreateTexture());
temp.gameObject.SetActive(true);
temp.transform.SetParent(_items_container.transform);
_items.Add(temp);
if (self)
{
temp._map_index = entry.Data.map_index;
}
else
{
temp._map_index = (ulong)entry.number;
}
}
示例2: PlayClick
public void PlayClick()
{
global_instance.Instance._global_game_type = global_game_type.global_game_type_game;
message.CrashMapData MapDataTemp = null;
if (_current_page == page_type.page_type_official)
{
MapDataTemp = global_instance.Instance._officilMapManager.getOfficilMap(_chapter_id, (int)_current_map_index);
}
else
{
MapDataTemp = GetCurrentSelectMapData();
}
if(MapDataTemp != null)
{
MapData temp = new MapData();
temp.set_info(MapDataTemp);
global_instance.Instance.SetMapData(temp);
global_instance.Instance._crash_mole_grid_manager.set_max_height(temp.height_);
global_instance.Instance._crash_mole_grid_manager.set_max_width(temp.width_);
global_instance.Instance._ngui_edit_manager._main_panel.gameObject.SetActive(false);
global_instance.Instance._ngui_edit_manager.update_game_type(game_type.game);
global_instance.Instance._global_game_type = global_game_type.global_game_type_game;
}
}
示例3: EditClick
public void EditClick()
{
message.CrashMapData MapDataTemp = GetCurrentSelectMapData();
MapData temp = new MapData();
temp.set_info(MapDataTemp);
global_instance.Instance.SetMapData(temp);
global_instance.Instance._global_game_type = global_game_type.global_game_type_edit;
global_instance.Instance._ngui_edit_manager.update_game_type(game_type.edit);
this.gameObject.SetActive(false);
}