// Use this for initialization void Awake() { if (_instance != null) { return; } _instance = this; if (m_close != null) { m_close.onClick.AddListener(() => { UIInterface.Instance.CloseLeaderBoard(); }); } }
private void OnEnable() { castedTarget = (UILeaderboard)target; }