protected static void OnPostBuild() { foreach (Type type in (from type in EZUtility.GetAllTypes() where type.IsClass select type)) { foreach (MethodInfo methods in type.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)) { if (methods.IsDefined(typeof(OnPostBuildAttribute), false)) { methods.Invoke(null, null); } } } }
private void OnDrawGizmosSelected() { Gizmos.matrix = Matrix4x4.identity * Matrix4x4.Translate(transform.position); EZUtility.DrawGizmosArrow(Vector3.zero, GetForce(0), 1, Vector3.up); }