protected virtual void ProcessProperty(SerializedProperty property) { if (Ignores.Contains(property)) { return; } if (Overrides.Contains(property)) { Overrides.Draw(property); } else if (Disabled.Contains(property)) { DrawDisabled(property); } else { DrawDefault(property); } }
protected virtual Stack <Rigidbody> ExtractHits(Collider[] colliders) { Stack <Rigidbody> rigidbodies = new Stack <Rigidbody>(); Rigidbody rigidbody; for (int i = 0; i < colliders.Length; i++) { if (Ignores.Contains(colliders[i])) { continue; } rigidbody = colliders[i].attachedRigidbody; if (rigidbody && !rigidbodies.Contains(rigidbody) && !Ignores.Contains(rigidbody)) { rigidbodies.Push(colliders[i].attachedRigidbody); } } return(rigidbodies); }
public bool IsIgnored(string path) { return(Ignores.Contains(path, StringComparer.OrdinalIgnoreCase)); }