public void DestroyTray() { if (trayForm != null) { trayForm.Dispose(); trayForm = null; } }
public void CreateTray() { #if !UNITY_EDITOR if (trayForm == null) { trayForm = new TurnSignalTrayForm(trayIconTex); //CreateIcon(trayIconTex)); trayForm.onExitCallback += OnExit; trayForm.onShowWindow += OnShowWindow; } #endif }