public void UnRegisterDynamic(GraphDynamicModifier modifier) { if (this.dynamicModifiers.Contains(modifier) == true) { if (this.dynamicModifiers.Remove(modifier) == true) { modifier.ApplyForced(disabled: true); this.BuildAreas(); } } }
public void RegisterDynamic(GraphDynamicModifier modifier) { if (this.dynamicModifiers.Contains(modifier) == false) { if (this.dynamicModifiers.Add(modifier) == true) { modifier.ApplyForced(); this.BuildAreas(); } } }