示例#1
0
 public void DestroyTray()
 {
     if (trayForm != null)
     {
         trayForm.Dispose();
         trayForm = null;
     }
 }
示例#2
0
    public void CreateTray()
    {
#if !UNITY_EDITOR
        if (trayForm == null)
        {
            trayForm = new PlayBoundsTrayForm(trayIconTex); //CreateIcon(trayIconTex));

            trayForm.onExitCallback += OnExit;
            trayForm.onShowWindow   += OnShowWindow;
        }
#endif
    }