public NavGraph GuidToGraph (Guid guid) { if (graphs == null) { return null; //CollectGraphs (); } for (int i=0;i<graphs.Length;i++) { if (graphs[i] == null) { continue; } if (graphs[i].guid == guid) { return graphs[i]; } } return null; }