public void OnEnable() { instance = (GSplineModifier)target; }
private void AddModifier(Type t) { GSplineModifier modifier = instance.gameObject.AddComponent(t) as GSplineModifier; modifier.SplineCreator = instance; }