void ClearGraphs () { if ( graphs == null ) return; for (int i=0;i<graphs.Length;i++) { if (graphs[i] != null) graphs[i].OnDestroy (); } graphs = null; UpdateShortcuts (); }