Skip to content

Commit f071d90

Browse files
committed
Removing unused field
1 parent c02f613 commit f071d90

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Assets/BossRoom/Scripts/Client/UI/PopupPanel.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ public class PopupPanel : MonoBehaviour
1818
[SerializeField]
1919
TextMeshProUGUI m_MainText;
2020

21-
/// <summary>
22-
/// Confirm function invoked when confirm is hit on popup
23-
/// </summary>
24-
Action m_ConfirmFunction;
25-
2621
static PopupPanel s_Instance;
2722

2823
void Awake()
@@ -38,7 +33,6 @@ void OnDestroy()
3833

3934
public void OnConfirmClick()
4035
{
41-
m_ConfirmFunction?.Invoke();
4236
ResetState();
4337
}
4438

@@ -49,7 +43,6 @@ void ResetState()
4943
{
5044
m_TitleText.text = string.Empty;
5145
m_MainText.text = string.Empty;
52-
m_ConfirmFunction = null;
5346
gameObject.SetActive(false);
5447
}
5548

@@ -78,7 +71,6 @@ void SetupPopupPanel(string titleText, string mainText, Action confirmFunction =
7871
m_TitleText.text = titleText;
7972
m_MainText.text = mainText;
8073

81-
m_ConfirmFunction = confirmFunction;
8274
gameObject.SetActive(true);
8375
}
8476
}

0 commit comments

Comments
 (0)