protected override void OnOpen(object userData) { base.OnOpen(userData); m_ProcedureMenu = (ProcedureMenu)userData; if (m_ProcedureMenu == null) { Log.Warning("ProcedureMenu is invalid when open MenuForm."); return; } // m_QuitButton.SetActive(Application.platform != RuntimePlatform.IPhonePlayer); }
protected override void OnClose(object userData) { m_ProcedureMenu = null; base.OnClose(userData); }