public void Update_ScratchTicketText() { MenuPanel.UpdateScratchTicketText(); if (_Scratch is null) { if (LoadedPanel_Dic.TryGetValue((int)MG_GamePanelType.ScratchPanel, out MG_UIBase _UIBase)) { _Scratch = _UIBase as MG_GamePanel_Scratch; } } if (_Scratch is object) { _Scratch.UpdateScratchTicketNumText(); } }
private void Awake() { parent = transform.GetComponentInParent <MG_GamePanel_Scratch>(); }