面板显示控制
This commit is contained in:
parent
66e5741b24
commit
8626552a2e
|
@ -202,7 +202,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &5977727790842883243
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1008,6 +1008,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 0e3b69ead98cac441a3ea8bc1512061b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
panel_object: {fileID: 5977727790842883242}
|
||||
line_group_name_inputfield: {fileID: 5977727791705923576}
|
||||
add_line_group_button: {fileID: 5977727791436101997}
|
||||
line_group_content: {fileID: 5977727791711232712}
|
||||
|
|
|
@ -5,6 +5,14 @@ using UnityEngine.UI;
|
|||
|
||||
public class LineGroupManager : MonoBehaviour
|
||||
{
|
||||
public static LineGroupManager Instance;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
public GameObject panel_object;
|
||||
|
||||
public InputField line_group_name_inputfield;
|
||||
public Button add_line_group_button;
|
||||
/// <summary>
|
||||
|
@ -25,6 +33,26 @@ public class LineGroupManager : MonoBehaviour
|
|||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ÏÔÊ¾Ãæ°å
|
||||
/// </summary>
|
||||
public void ShowPanel()
|
||||
{
|
||||
panel_object.SetActive(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Òþ²ØÃæ°å
|
||||
/// </summary>
|
||||
public void HidePanel()
|
||||
{
|
||||
panel_object.SetActive(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ìí¼ÓÏßÀÂ×é
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
public void AddLineGroup(string name)
|
||||
{
|
||||
//判断是否有重复
|
||||
|
|
Loading…
Reference in New Issue