public void FindGraphTypes () {
#if !ASTAR_FAST_NO_EXCEPTIONS
System.Reflection.Assembly asm = System.Reflection.Assembly.GetAssembly (typeof(AstarPath));
System.Type[] types = asm.GetTypes ();
List<System.Type> graphList = new List<System.Type> ();
foreach (System.Type type in types) {
System.Type baseType = type.BaseType;
while (baseType != null) {
if (baseType == typeof(NavGraph)) {
graphList.Add (type);
break;
}
baseType = baseType.BaseType;
}
}
graphTypes = graphList.ToArray ();
#if ASTARDEBUG
Debug.Log ("Found "+graphTypes.Length+" graph types");
#endif
#else
graphTypes = DefaultGraphTypes;
#endif
}