Esempio n. 1
0
 public static void Color(this SerializedConfig.Extensions.AsRenderer ext, Color from, Color to, EasingType easingType = EasingType.Linear, IEasingContainer easingContainer = null, string prefix = "")
 {
     ext.Add(new ReflectedConfigProperty <Color>()
     {
         Path = prefix + MaterialPrefix + ".color", From = from, To = to
     }, BaseYieldTweenProperty.PropertyOffsetMode.FromTo, easingType, easingContainer);
 }
Esempio n. 2
0
 public static void SetValueToOffset <T>(this SerializedConfig.Extensions.AsRenderer ext, string name, T to, EasingType easingType = EasingType.Linear, IEasingContainer easingContainer = null, string prefix = "") where T : struct
 {
     ext.Add(new MaterialConfigProperty <T>()
     {
         Path = prefix + MaterialPrefix + name, To = to,
     }, BaseYieldTweenProperty.PropertyOffsetMode.AddOffset, easingType, easingContainer);
 }