Esempio n. 1
0
 private static void ApplyScrollRectStyle <T>(ScrollRectStyleData style, UIReference <T> reference)
     where T : ScrollRect
 {
     reference.value.movementType      = style.movementType;
     reference.value.elasticity        = style.elasticity;
     reference.value.inertia           = style.inertia;
     reference.value.decelerationRate  = style.decelerationRate;
     reference.value.scrollSensitivity = style.scrollSensitivity;
 }
Esempio n. 2
0
 public static void Apply(ScrollRectStyleData style, UIReference <ScrollRect> scroll) =>
 ApplyStyle(style, scroll, applyScrollRect);